You are here

function logouttab_help in Logout Tab 8

Implements hook_help().

File

./logouttab.module, line 14
Adds a logout tab to the user page.

Code

function logouttab_help($route_name) {
  switch ($route_name) {
    case 'help.page.logouttab':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The module allows user to log out using new tab from the profile page.') . '</p>';
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<dl>';
      $output .= '<dt>' . t('Configuring the tab settings') . '</dt>';
      $output .= '<dd>' . t('On the <a href=":logouttab-settings">Settings page</a>, you can set the weight of the tab and URL to use for logout.', [
        ':logouttab-settings' => Url::fromRoute('logouttab.settings')
          ->toString(),
      ]) . '</dd>';
      $output .= '</dl>';
      return $output;
  }
}