Repository URL to install this package:
|
Version:
1.2.4 ▾
|
<?php
namespace Drupal\dds_editors\Routing;
use Drupal\Core\Routing\RouteSubscriberBase;
use Symfony\Component\Routing\RouteCollection;
/**
* Class DDSEditorRouteSubscriber
*
* @package Drupal\dds_editors\Routing
*/
class DDSEditorsRouteSubscriber extends RouteSubscriberBase {
/**
* {@inheritdoc}
*/
protected function alterRoutes(RouteCollection $collection)
{
if($route = $collection->get('entity.user.edit_form')) {
$route->setRequirement('_custom_access', 'Drupal\dds_editors\Access\DDSEditorsAccessCheck::accessUserEdit');
}
}
}