'_permission' => 'search content',
],
[ 'parameters' =>
[ 'entity' =>
[ 'type' => 'entity:search_page',
],
],
] );
} $active_pages =
$this->searchPageRepository->
getActiveSearchPages();
foreach ($active_pages as $entity_id =>
$entity) { $routes["search.view_
$entity_id"
] =
new Route( '/search/' .
$entity->
getPath(),
[ '_controller' => 'Drupal\search\Controller\SearchController::view',
'_title' => 'Search',
'entity' =>
$entity_id,
],
[ '_entity_access' => 'entity.view',
'_permission' => 'search content',
],