AdminRouteSubscriber::alterRoutes

protected AdminRouteSubscriber::alterRoutes(RouteCollection $collection) Alters existing routes for a specific collection. Parameters \Symfony\Component\Routing\RouteCollection $collection: The route collection for adding routes. Overrides RouteSubscriberBase::alterRoutes File core/modules/system/src/EventSubscriber/AdminRouteSubscriber.php, line 17 Class AdminRouteSubscriber Adds the _admin_route option to each admin route. Namespace Drupal\system\EventSubscriber Code protected funct

AdminRouteSubscriber

Adds the _admin_route option to each admin route. Hierarchy class \Drupal\Core\Routing\RouteSubscriberBase implements EventSubscriberInterfaceclass \Drupal\system\EventSubscriber\AdminRouteSubscriber File core/modules/system/src/EventSubscriber/AdminRouteSubscriber.php, line 12 Namespace Drupal\system\EventSubscriber Members Name Modifiers Type Description AdminRouteSubscriber::alterRoutes protected function Alters existing routes for a specific collection. Overrides Ro

AdminPathConfigEntityConverter::__construct

public AdminPathConfigEntityConverter::__construct(EntityManagerInterface $entity_manager, ConfigFactoryInterface $config_factory, AdminContext $admin_context) Constructs a new EntityConverter. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory. \Drupal\Core\Routing\AdminContext $admin_context: The route admin context service. Overrides EntityConverter::__construct File core/l

AdminPathConfigEntityConverter::convert

public AdminPathConfigEntityConverter::convert($value, $definition, $name, array $defaults) Converts path variables to their corresponding objects. Parameters mixed $value: The raw value. mixed $definition: The parameter definition provided in the route options. string $name: The name of the parameter. array $defaults: The route defaults array. Return value mixed|null The converted parameter value. Overrides EntityConverter::convert File core/lib/Drupal/Core/ParamConverter/AdminPathConfigEnti

AdminPathConfigEntityConverter::applies

public AdminPathConfigEntityConverter::applies($definition, $name, Route $route) Determines if the converter applies to a specific route and variable. Parameters mixed $definition: The parameter definition provided in the route options. string $name: The name of the parameter. \Symfony\Component\Routing\Route $route: The route to consider attaching to. Return value bool TRUE if the converter applies to the passed route and parameter, FALSE otherwise. Overrides EntityConverter::applies File co

AdminPathConfigEntityConverter::$configFactory

The config factory. Type: \Drupal\Core\Config\ConfigFactoryInterface File core/lib/Drupal/Core/ParamConverter/AdminPathConfigEntityConverter.php, line 32 Class AdminPathConfigEntityConverter Makes sure the unmodified ConfigEntity is loaded on admin pages. Namespace Drupal\Core\ParamConverter Code protected $configFactory;

AdminPathConfigEntityConverter::$adminContext

The route admin context to determine whether a route is an admin one. Type: \Drupal\Core\Routing\AdminContext File core/lib/Drupal/Core/ParamConverter/AdminPathConfigEntityConverter.php, line 39 Class AdminPathConfigEntityConverter Makes sure the unmodified ConfigEntity is loaded on admin pages. Namespace Drupal\Core\ParamConverter Code protected $adminContext;

AdminPathConfigEntityConverter

Makes sure the unmodified ConfigEntity is loaded on admin pages. Converts entity route arguments to unmodified entities as opposed to converting to entities with overrides, such as the negotiated language. This converter applies only if the path is an admin path, the entity is a config entity, and the "with_config_overrides" element is not set to TRUE on the parameter definition. Due to this converter having a higher weight than the default EntityConverter, every time this applies, it takes ove

AdminNegotiator::__construct

public AdminNegotiator::__construct(AccountInterface $user, ConfigFactoryInterface $config_factory, EntityManagerInterface $entity_manager, AdminContext $admin_context) Creates a new AdminNegotiator instance. Parameters \Drupal\Core\Session\AccountInterface $user: The current user. \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory. \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. \Drupal\Core\Routing\AdminContext $admin_context: The r

AdminNegotiator::determineActiveTheme

public AdminNegotiator::determineActiveTheme(RouteMatchInterface $route_match) Determine the active theme for the request. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match object. Return value string|null The name of the theme, or NULL if other negotiators, like the configured default one, should be used instead. Overrides ThemeNegotiatorInterface::determineActiveTheme File core/modules/user/src/Theme/AdminNegotiator.php, line 74 Class AdminNegotia