diff --git a/content_entity_example/content_entity_example.menu_links.yml b/content_entity_example/content_entity_example.menu_links.yml index 36fce73..d732d65 100755 --- a/content_entity_example/content_entity_example.menu_links.yml +++ b/content_entity_example/content_entity_example.menu_links.yml @@ -1,5 +1,5 @@ content_entity_example.contact_list: - title: Contacts Listing + title: 'Content Entity Example: Contacts Listing' route_name: content_entity_example.contact_list description: 'List Contacts' weight: 10 diff --git a/content_entity_example/content_entity_example.module b/content_entity_example/content_entity_example.module index 94342aa..f4b97e5 100755 --- a/content_entity_example/content_entity_example.module +++ b/content_entity_example/content_entity_example.module @@ -5,6 +5,8 @@ * Contains Drupal\content_entity_example\content_entity_example.module */ +use Symfony\Component\HttpFoundation\Request; + /** * @defgroup content_entity_example Example: Content Entity * @ingroup examples @@ -35,3 +37,18 @@ function content_entity_example_permission() { ), ); } + +/** + * Implements hook_help(). + */ +function content_entity_example_help($route_name, Request $request) { + switch ($route_name) { + // Main module help for the block module. + case 'content_entity_example.contact_list': + return '

' . + t('Content Entity Example implements a Contacts model. These contacts are fieldable entities. You can manage the fields on the Contacts admin page.', array( + '@adminlink' => \Drupal::urlGenerator()->generateFromRoute('content_entity_example.contact_settings'), + ) + ) . '

'; + } +}