diff --git a/core/modules/entity_reference/entity_reference.module b/core/modules/entity_reference/entity_reference.module index d52ba4c..9f7baa2 100644 --- a/core/modules/entity_reference/entity_reference.module +++ b/core/modules/entity_reference/entity_reference.module @@ -12,6 +12,28 @@ use Drupal\field\FieldInterface; /** + * Implements hook_help(). + */ +function entity_reference_help($path, $arg) { + switch ($path) { + case 'admin/help#entity_reference': + $output = ''; + $output .= '

' . t('About') . '

'; + $output .= '

' . t('The Entity Reference module allows you to create fields that contain links to other entities (such as content items, taxonomy terms, etc.) within Drupal. This allows you, for example, to include a link to a user within a node (see the Entity module help page and the Field module help page to learn about entities and fields). For more information, see the online documentation for the Entity Reference module.', array('!field_help' => \Drupal::url('help.page', array('name' => 'field')),'!entity_help' => \Drupal::url('help.page', array('name' => 'entity')), '!er_do' => 'https://drupal.org/documentation/modules/entityreference')) . '

'; + $output .= '

' . t('Uses') . '

'; + $output .= '
'; + $output .= '
' . t('Managing and displaying entity reference fields') . '
'; + $output .= '
' . t('The settings and the display of the entity reference field can be configured separately. See the Field UI help for more information on how to manage fields and their display.', array('!field_ui' => \Drupal::url('help.page', array('name' => 'field_ui')))) . '
'; + $output .= '
' . t('Managing the display of entity references') . '
'; + $output .= '
' . t('An entity reference can be displayed as a simple label with a link to the entity. Alternatively, the referenced entity can be displayed as a teaser (or any other available view mode) inside the referencing entity.') . '
'; + $output .= '
' . t('Adding entity references to content') . '
'; + $output .= '
' . t('You can add links to other entities within Drupal using the Field UI module. You can only link to one kind of entity. Depending on the chosen entity type, additional filtering and sorting options are available for the list of entities that can be referred to.', array('!field_ui_help' => \Drupal::url('help.page', array('name' => 'field_ui')))) . '
'; + $output .= '
'; + return $output; + } +} + +/** * Implements hook_field_info_alter(). */ function entity_reference_field_info_alter(&$info) {