You are here

function thunder_media_menu_links_discovered_alter in Thunder 8.2

Implements hook_menu_links_discovered_alter().

File

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

Code

function thunder_media_menu_links_discovered_alter(&$links) {
  $view = \Drupal::entityTypeManager()
    ->getStorage('view')
    ->load('thunder_media');
  if ($view) {
    $links['entity.media.collection']['route_name'] = 'view.thunder_media.media_page_list';
  }
}