diff --git a/core/modules/entity/entity.module b/core/modules/entity/entity.module index deadbf8..fb838be 100644 --- a/core/modules/entity/entity.module +++ b/core/modules/entity/entity.module @@ -31,6 +31,29 @@ 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('Configure what display modes are available for your content and forms.') . '

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

' . t('Manage custom view modes. You can create, rename or delete display modes from here.') . '

'; + + case 'entity.view_mode_add': + return '

' . t('First pick which entity type you want a new display mode for.') . '

'; + + case 'entity.view_mode_edit': + return '

' . t('You can edit the display mode name or delete the display mode.') . '

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

' . t('Manage custom form display modes. You can create, rename or delete form display modes from here.') . '

'; + + case 'entity.form_mode_add': + return '

' . t('First pick which entity type you want a new form display mode for.') . '

'; + + case 'entity.form_mode_edit': + return '

' . t('You can edit the display mode name or delete the display mode.') . '

'; } }