diff --git a/core/modules/entity/entity.menu_links.yml b/core/modules/entity/entity.menu_links.yml index 66c67c6..033adb6 100644 --- a/core/modules/entity/entity.menu_links.yml +++ b/core/modules/entity/entity.menu_links.yml @@ -1,15 +1,15 @@ entity.display_mode: title: 'Display modes' - description: 'Configure what displays are available for your content and forms.' + description: 'Configure display modes, which include view modes (different ways to view entities) and form modes (different ways to edit entities).' route_name: entity.display_mode parent: system.admin_structure entity.view_mode_list: title: 'View modes' - description: 'Manage custom view modes.' + description: 'Configure view modes to display content differently for different situations; for example, Full content or Teaser.' route_name: entity.view_mode_list parent: entity.display_mode entity.form_mode_list: title: 'Form modes' - description: 'Manage custom form modes.' + description: 'Configure form modes to edit content differently for different situations; for example, User edit or User register.' route_name: entity.form_mode_list parent: entity.display_mode diff --git a/core/modules/entity/entity.module b/core/modules/entity/entity.module index deadbf8..4c0d632 100644 --- a/core/modules/entity/entity.module +++ b/core/modules/entity/entity.module @@ -31,6 +31,17 @@ function entity_help($route_name, Request $request) { $output .= '
' . t('Each content entity can have various editing forms appropriate for different situations, which are known as "form modes". For instance, you might want to define a quick editing mode that allows users to edit the most important fields, and a full editing mode that gives access to all the fields. You can create, edit the names of, and delete form modes on the Manage custom form modes page. Once a form mode has been set up, you can choose which fields are available on that form within each entity sub-type on the Manage form display page. See the Field UI module help page for more information.', array('!form-modes' => \Drupal::url('entity.form_mode_list'), '!field_ui' => \Drupal::url('help.page', array('name' => 'field_ui')))) . '
'; $output .= ''; return $output; + + case 'entity.display_mode': + return '

' . t('Display modes include view modes (used to view content differently for different situations) and form modes (used to make different entity editing forms for different situations).') . '

'; + + // View modes. + case 'entity.view_mode_list': + return '

' . t('Use view modes to display content differently for different situations; for example, \'Full content\' or \'Teaser\'.') . '

'; + + // Form modes. + case 'entity.form_mode_list': + return '

' . t('Use form modes to edit content differently for different situations; for example, \'User edit\' or \'User register\'.') . '

'; } }