PathRootsSubscriber::$pathRoots

Stores the path roots available in the router. A path root is the first virtual directory of a path, like 'admin', 'node' or 'user'. Type: array File core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php, line 23 Class PathRootsSubscriber Provides all available first bits of all route paths. Namespace Drupal\Core\EventSubscriber Code protected $pathRoots = [];

PathRootsSubscriber

Provides all available first bits of all route paths. Hierarchy class \Drupal\Core\EventSubscriber\PathRootsSubscriber implements EventSubscriberInterface File core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php, line 13 Namespace Drupal\Core\EventSubscriber Members Name Modifiers Type Description PathRootsSubscriber::$pathRoots protected property Stores the path roots available in the router. PathRootsSubscriber::$state protected property The state key

PathProcessorLanguage::__construct

public PathProcessorLanguage::__construct(ConfigFactoryInterface $config, ConfigurableLanguageManagerInterface $language_manager, LanguageNegotiatorInterface $negotiator, AccountInterface $current_user, ConfigSubscriber $config_subscriber) Constructs a PathProcessorLanguage object. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config: A config factory object for retrieving configuration settings. \Drupal\language\ConfigurableLanguageManagerInterface $language_manager: The configurable

PathProcessorLanguage::reset

public PathProcessorLanguage::reset() Resets the collected processors instances. File core/modules/language/src/HttpKernel/PathProcessorLanguage.php, line 176 Class PathProcessorLanguage Processes the inbound path using path alias lookups. Namespace Drupal\language\HttpKernel Code public function reset() { $this->processors = array(); }

PathProcessorLanguage::processOutbound

public PathProcessorLanguage::processOutbound($path, &$options = array(), Request $request = NULL, BubbleableMetadata $bubbleable_metadata = NULL) Processes the outbound path. Parameters string $path: The path to process, with a leading slash. array $options: (optional) An associative array of additional options, with the following elements: 'query': An array of query key/value-pairs (without any URL-encoding) to append to the URL. 'fragment': A fragment identifier (named anchor) to appe

PathProcessorLanguage::processInbound

public PathProcessorLanguage::processInbound($path, Request $request) Processes the inbound path. Parameters string $path: The path to process, with a leading slash. \Symfony\Component\HttpFoundation\Request $request: The HttpRequest object representing the current request. Return value string The processed path. Overrides InboundPathProcessorInterface::processInbound File core/modules/language/src/HttpKernel/PathProcessorLanguage.php, line 89 Class PathProcessorLanguage Processes the in

PathProcessorLanguage::initProcessors

protected PathProcessorLanguage::initProcessors($scope) Initializes the local cache for language path processors. Parameters string $scope: The scope of the processors: "inbound" or "outbound". File core/modules/language/src/HttpKernel/PathProcessorLanguage.php, line 132 Class PathProcessorLanguage Processes the inbound path using path alias lookups. Namespace Drupal\language\HttpKernel Code protected function initProcessors($scope) { $interface = '\Drupal\Core\PathProcessor\\' . Un

PathProcessorLanguage::initConfigSubscriber

public PathProcessorLanguage::initConfigSubscriber() Initializes the injected event subscriber with the language path processor. The language path processor service is registered only on multilingual site configuration, thus we inject it in the event subscriber only when it is initialized. File core/modules/language/src/HttpKernel/PathProcessorLanguage.php, line 169 Class PathProcessorLanguage Processes the inbound path using path alias lookups. Namespace Drupal\language\HttpKernel Cod

PathProcessorLanguage::$processors

Local cache for language path processors. Type: array File core/modules/language/src/HttpKernel/PathProcessorLanguage.php, line 47 Class PathProcessorLanguage Processes the inbound path using path alias lookups. Namespace Drupal\language\HttpKernel Code protected $processors;

PathProcessorLanguage::$negotiator

The language negotiator. Type: \Drupal\language\LanguageNegotiatorInterface File core/modules/language/src/HttpKernel/PathProcessorLanguage.php, line 40 Class PathProcessorLanguage Processes the inbound path using path alias lookups. Namespace Drupal\language\HttpKernel Code protected $negotiator;