You are here

function thunder_media_menu_local_actions_alter in Thunder 8.2

Implements hook_menu_local_actions_alter().

File

modules/thunder_media/thunder_media.module, line 63
Contains media related functions.

Code

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