RouteSubscriber.php in Media: Acquia DAM 8
File
modules/media_acquiadam_report/src/Routing/RouteSubscriber.php
View source
<?php
namespace Drupal\media_acquiadam_report\Routing;
use Drupal\Core\Routing\RouteSubscriberBase;
use Symfony\Component\Routing\RouteCollection;
class RouteSubscriber extends RouteSubscriberBase {
protected function alterRoutes(RouteCollection $collection) {
if ($route = $collection
->get('view.acquia_dam_reporting.asset_report')) {
$route
->setOption('_admin_route', TRUE);
}
}
}