You are here

function field_collection_help in Field collection 8

Same name and namespace in other branches
  1. 8.3 field_collection.module \field_collection_help()
  2. 7 field_collection.module \field_collection_help()

Implements hook_help().

File

./field_collection.module, line 21
Module implementing field collection field type.

Code

function field_collection_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.field_collection':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The field collection module provides a field, to which any number of fields can be attached. See the <a href="@field-help">Field module help page</a> for more information about fields.', [
        '@field-help' => Url::fromRoute('help.page', [
          'name' => 'field',
        ])
          ->toString(),
      ]) . '</p>';
      return $output;
  }
}