function field_layout_help

Same name in other branches
  1. 9 core/modules/field_layout/field_layout.module \field_layout_help()
  2. 8.9.x core/modules/field_layout/field_layout.module \field_layout_help()
  3. 11.x core/modules/field_layout/field_layout.module \field_layout_help()

Implements hook_help().

File

core/modules/field_layout/field_layout.module, line 23

Code

function field_layout_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.