function WorkspacesHooks::help

Implements hook_help().

File

core/modules/workspaces/src/Hook/WorkspacesHooks.php, line 34

Class

WorkspacesHooks
Hook implementations for workspaces.

Namespace

Drupal\workspaces\Hook

Code

public function help(string $route_name, RouteMatchInterface $route_match) : string {
    $output = '';
    switch ($route_name) {
        // Main module help for the Workspaces module.
        case 'help.page.workspaces':
            $output = '';
            $output .= '<h2>' . $this->t('About') . '</h2>';
            $output .= '<p>' . $this->t('The Workspaces module allows workspaces to be defined and switched between. Content is then assigned to the active workspace when created. For more information, see the <a href=":workspaces">online documentation for the Workspaces module</a>.', [
                ':workspaces' => 'https://www.drupal.org/docs/8/core/modules/workspace/overview',
            ]) . '</p>';
            break;
    }
    return $output;
}

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