You are here

function thunder_riddle_menu_local_actions_alter in Thunder 8.2

Implements hook_menu_local_actions_alter().

File

modules/thunder_article/modules/thunder_riddle/thunder_riddle.module, line 11
Thunder riddle install hooks.

Code

function thunder_riddle_menu_local_actions_alter(&$local_actions) {
  $view = \Drupal::entityTypeManager()
    ->getStorage('view')
    ->load('thunder_media');
  if ($view) {
    $local_actions['riddle_marketplace.import']['appears_on'][] = 'view.thunder_media.media_page_list';
  }
}