function workflows_help

Same name in other branches
  1. 9 core/modules/workflows/workflows.module \workflows_help()
  2. 8.9.x core/modules/workflows/workflows.module \workflows_help()
  3. 11.x core/modules/workflows/workflows.module \workflows_help()

Implements hook_help().

File

core/modules/workflows/workflows.module, line 13

Code

function workflows_help($route_name, RouteMatchInterface $route_match) {
    switch ($route_name) {
        case 'help.page.workflows':
            $output = '';
            $output .= '<h2>' . t('About') . '</h2>';
            $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>';
            $output .= '<h4>' . t('Workflow') . '</h4>';
            $output .= '<p>' . t('A collection of states and transitions between those states.') . '</p>';
            $output .= '<h4>' . t('State') . '</h4>';
            $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>';
            $output .= '<h4>' . t('Transition') . '</h4>';
            $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>';
            return $output;
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.