You are here

function views_field_formatter_help in Views field formatter 8.2

Same name and namespace in other branches
  1. 8 views_field_formatter.module \views_field_formatter_help()

Implements hook_help().

File

./views_field_formatter.module, line 19

Code

function views_field_formatter_help($route_name, RouteMatchInterface $route_match) {
  $help = '';
  if ($route_name === 'help.page.views_field_formatter') {
    $help .= '<h3>' . t('About') . '</h3>';
    $help .= '<p>' . t("Provide a new field formatter: '<strong>View</strong>' for each field types and allows you to select a View and to use its result instead of the original field value.") . '</p>';
    $help .= '<h3>' . t('More Information') . '</h3>';
    $help .= '<p>' . t('for more information about this module please visit the <a href="@link">project page</a>', [
      '@link' => 'https://www.drupal.org/project/views_field_formatter',
    ]) . '</p>';
  }
  return $help;
}