workflows.module 1.5 KB

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * @file
  4. * Provides hook implementations for the Workflows module.
  5. */
  6. use Drupal\Core\Routing\RouteMatchInterface;
  7. /**
  8. * Implements hook_help().
  9. */
  10. function workflows_help($route_name, RouteMatchInterface $route_match) {
  11. switch ($route_name) {
  12. case 'help.page.workflows':
  13. $output = '';
  14. $output .= '<h3>' . t('About') . '</h3>';
  15. $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>';
  16. $output .= '<h4>' . t('Workflow') . '</h4>';
  17. $output .= '<p>' . t('A collection of states and transitions between those states.') . '</p>';
  18. $output .= '<h4>' . t('State') . '</h4>';
  19. $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>';
  20. $output .= '<h4>' . t('Transition') . '</h4>';
  21. $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>';
  22. return $output;
  23. }
  24. }