function FieldLayoutHooks::help

Implements hook_help().

Attributes

#[Hook('help')]

File

core/modules/field_layout/src/Hook/FieldLayoutHooks.php, line 29

Class

FieldLayoutHooks
Hook implementations for field_layout.

Namespace

Drupal\field_layout\Hook

Code

public function help($route_name, RouteMatchInterface $route_match) : ?string {
  switch ($route_name) {
    case 'help.page.field_layout':
      $output = '<h2>' . $this->t('About') . '</h2>';
      $output .= '<p>' . $this->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>' . $this->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;
  }
  return NULL;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.