function FieldLayoutHooks::help
Implements hook_help().
File
-
core/
modules/ field_layout/ src/ Hook/ FieldLayoutHooks.php, line 26
Class
- FieldLayoutHooks
- Hook implementations for field_layout.
Namespace
Drupal\field_layout\HookCode
public function help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.field_layout':
$output = '<h2>' . t('About') . '</h2>';
$output .= '<p>' . t('The Field Layout module allows you to arrange fields into regions on forms and displays of entities such as nodes and users.') . '</p>';
$output .= '<p>' . t('For more information, see the <a href=":field-layout-documentation">online documentation for the Field Layout module</a>.', [
':field-layout-documentation' => 'https://www.drupal.org/documentation/modules/field_layout',
]) . '</p>';
return $output;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.