Builds PathProcessor object.
Paramètres
\Drupal\Core\PathProcessor\InboundPathProcessorInterface $path_processor: The path processor.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.
Fichier
-
src/
PathProcessor.php, line 83
Classe
- PathProcessor
- Processes the inbound path using path alias lookups.
Namespace
Drupal\subpathautoCode
public function __construct(InboundPathProcessorInterface $path_processor, LanguageManagerInterface $language_manager, ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler = NULL) {
$this->pathProcessor = $path_processor;
$this->languageManager = $language_manager;
$this->configFactory = $config_factory;
$this->moduleHandler = $module_handler;
if (empty($this->moduleHandler)) {
@trigger_error('Calling PathProcessor::__construct() without the $module_handler argument is deprecated in subpathauto:8.x-1.2 and the $module_handler argument will be required in subpathauto:2.0. See https://www.drupal.org/project/subpathauto/issues/3175637', E_USER_DEPRECATED);
$this->moduleHandler = \Drupal::service('module_handler');
}
}