public function PathSubscriber::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php \Drupal\Core\EventSubscriber\PathSubscriber::__construct()
Constructs a new PathSubscriber instance.
Parameters
\Drupal\Core\Path\AliasManagerInterface $alias_manager: The alias manager.
\Drupal\Core\Path\CurrentPathStack $current_path: The current path.
File
- core/
lib/ Drupal/ Core/ EventSubscriber/ PathSubscriber.php, line 45 - Contains \Drupal\Core\EventSubscriber\PathSubscriber.
Class
- PathSubscriber
- Provides a path subscriber that converts path aliases.
Namespace
Drupal\Core\EventSubscriberCode
public function __construct(AliasManagerInterface $alias_manager, CurrentPathStack $current_path) {
$this->aliasManager = $alias_manager;
$this->currentPath = $current_path;
}