You are here

views_field_formatter.module in Views field formatter 8

Same filename and directory in other branches
  1. 8.2 views_field_formatter.module
  2. 7 views_field_formatter.module

File

views_field_formatter.module
View source
<?php

/**
 * @file
 * Views Field Formatter module.
 */
declare (strict_types=1);
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function views_field_formatter_help($route_name, RouteMatchInterface $route_match) {
  $output = '';
  if ($route_name !== 'help.page.views_field_formatter') {
    return $output;
  }
  $output .= '<h3>' . \t('About') . '</h3>';
  $output .= '<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>';
  $output .= '<h3>' . \t('More Information') . '</h3>';
  $output .= '<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 $output;
}

Functions

Namesort descending Description
views_field_formatter_help Implements hook_help().