Mercurial > hg > isophonics-drupal-site
annotate core/modules/workflows/workflows.module @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 /** |
Chris@0 | 4 * @file |
Chris@0 | 5 * Provides hook implementations for the Workflows module. |
Chris@0 | 6 */ |
Chris@0 | 7 |
Chris@0 | 8 use Drupal\Core\Routing\RouteMatchInterface; |
Chris@0 | 9 |
Chris@0 | 10 /** |
Chris@0 | 11 * Implements hook_help(). |
Chris@0 | 12 */ |
Chris@0 | 13 function workflows_help($route_name, RouteMatchInterface $route_match) { |
Chris@0 | 14 switch ($route_name) { |
Chris@0 | 15 case 'help.page.workflows': |
Chris@0 | 16 $output = ''; |
Chris@0 | 17 $output .= '<h3>' . t('About') . '</h3>'; |
Chris@0 | 18 $output .= '<p>' . t('The Workflows module provides a UI and an API for creating workflows content. This lets site admins define workflows and their states, and then define transitions between those states. For more information, see the <a href=":workflow">online documentation for the Workflows module</a>.', [':workflow' => 'https://www.drupal.org/documentation/modules/workflows']) . '</p>'; |
Chris@0 | 19 $output .= '<h4>' . t('Workflow') . '</h4>'; |
Chris@0 | 20 $output .= '<p>' . t('A collection of states and transitions between those states.') . '</p>'; |
Chris@0 | 21 $output .= '<h4>' . t('State') . '</h4>'; |
Chris@0 | 22 $output .= '<p>' . t('A particular condition that something is in at a specific time. The usage of the state is determined by a module that harnesses the Workflows module. For example, Content Moderation allows a state to be used for moderation of content by assigning a given state to a content item.') . '</p>'; |
Chris@0 | 23 $output .= '<h4>' . t('Transition') . '</h4>'; |
Chris@0 | 24 $output .= '<p>' . t('The process of changing from one state to another. A transition can occur from multiple states, but only to one state.') . '</p>'; |
Chris@0 | 25 return $output; |
Chris@0 | 26 } |
Chris@0 | 27 } |