function media_entity_help in Media entity 8
Implements hook_help().
File
- ./
media_entity.module, line 13 - Provides media entities.
Code
function media_entity_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.media_entity':
$output = '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The <a href=":media_entity_url">Media Entity</a> module provides a "base" entity for media. This is a very basic entity which can reference to all kinds of media-objects (local files, YouTube videos, Tweets, Instagram photos, ...). Media entity provides a relation between your website and the media resource. You can reference to/use this entity within any other entity on your site. For more information, see the <a href=":media_entity_handbook">online documentation for the Media Entity module</a>.', [
':media_entity_url' => 'https://www.drupal.org/project/media_entity',
':media_entity_handbook' => 'https://drupal-media.gitbooks.io/drupal8-guide/content/modules/media_entity/intro.html',
]) . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<p>' . t('For detailed information about the usage of this module please refer to <a href=":media_entity_handbook">the official documentation</a>.', [
':media_entity_handbook' => 'https://drupal-media.gitbooks.io/drupal8-guide/content/modules/media_entity/intro.html',
]) . '</p>';
return $output;
}
}