You are here

function mentions_help in Open Social 8.2

Same name and namespace in other branches
  1. 8.9 modules/custom/mentions/mentions.module \mentions_help()
  2. 8 modules/custom/mentions/mentions.module \mentions_help()
  3. 8.3 modules/custom/mentions/mentions.module \mentions_help()
  4. 8.4 modules/custom/mentions/mentions.module \mentions_help()
  5. 8.5 modules/custom/mentions/mentions.module \mentions_help()
  6. 8.6 modules/custom/mentions/mentions.module \mentions_help()
  7. 8.7 modules/custom/mentions/mentions.module \mentions_help()
  8. 8.8 modules/custom/mentions/mentions.module \mentions_help()
  9. 10.3.x modules/custom/mentions/mentions.module \mentions_help()
  10. 10.0.x modules/custom/mentions/mentions.module \mentions_help()
  11. 10.1.x modules/custom/mentions/mentions.module \mentions_help()
  12. 10.2.x modules/custom/mentions/mentions.module \mentions_help()

Implements hook_help().

File

modules/custom/mentions/mentions.module, line 18
Code for the mentions module.

Code

function mentions_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'entity.mentions_type.list':
      $text_format_url = Url::fromRoute('filter.admin_overview');
      $text_format_link = Link::fromTextAndUrl(t('text formats'), $text_format_url)
        ->toString();
      $output = t("You can enable 'Mentions Filter' for the mentions type below for the appropriate @text_format", [
        '@text_format' => $text_format_link,
      ]);
      return $output;
  }
}