You are here

function media_directories_help in Media Directories 8

Same name and namespace in other branches
  1. 3.x media_directories.module \media_directories_help()
  2. 2.x media_directories.module \media_directories_help()

Implements hook_help().

File

./media_directories.module, line 25
Main module file.

Code

function media_directories_help($route_name) {
  switch ($route_name) {
    case 'help.page.media_directories':
      $vocabulary_add_url = Url::fromRoute('entity.taxonomy_vocabulary.add_form')
        ->toString();
      $settings_url = Url::fromRoute('media_directories.config_form')
        ->toString();
      return '<p>' . t('Create taxonomy <a href=":create_vocabulary_url">vocabulary</a> to hold directory structure and select it in the <a href=":media_directors_setting_url">settings</a>.', [
        ':create_vocabulary_url' => $vocabulary_add_url,
        ':media_directors_setting_url' => $settings_url,
      ]) . '</p>';
  }
}