X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fentity_browser%2Fentity_browser.module;h=a73e5eade078985f196a3050594842c6fb592e0d;hp=b3b7dd00b855411f825f698f429076cf1aa9bab6;hb=eba34333e3c89f208d2f72fa91351ad019a71583;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae diff --git a/web/modules/contrib/entity_browser/entity_browser.module b/web/modules/contrib/entity_browser/entity_browser.module index b3b7dd00b..a73e5eade 100644 --- a/web/modules/contrib/entity_browser/entity_browser.module +++ b/web/modules/contrib/entity_browser/entity_browser.module @@ -9,6 +9,29 @@ use \Drupal\Core\Form\FormStateInterface; use \Drupal\Core\Render\Element; use Drupal\Core\Url; use \Drupal\file\FileInterface; +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function entity_browser_help($route_name, RouteMatchInterface $arg) { + switch ($route_name) { + case 'help.page.entity_browser': + $output = ''; + $output .= '

' . t('About') . '

'; + $output .= '

' . t('The Entity Browser module provides a generic entity browser/picker/selector. It can be used in any context where one needs to select a few entities and do something with them. For more information, see the online documentation for Entity Browser.', array(':entity_browser-documentation' => 'https://drupal-media.gitbooks.io/drupal8-guide/content/modules/entity_browser/intro.html')) . '

'; + $output .= '

' . t('Uses') . '

'; + $output .= '
'; + $output .= '
' . t('General') . '
'; + $output .= '
' . t('Entity browser comes with an example module that can be used as a starting point.') . '
'; + $output .= '
' . t('Example use cases') . '
'; + $output .= '
' . t('Powerfull entity reference widget') . '
'; + $output .= '
' . t('Embedding entities into wysiwyg') . '
'; + $output .= '
'; + + return $output; + } +} /** * Implements hook_theme().