public function ActiveLinkResponseFilter::__construct
public ActiveLinkResponseFilter::__construct(AccountInterface $current_user, CurrentPathStack $current_path, PathMatcherInterface $path_matcher, LanguageManagerInterface $language_manager)
Constructs a new ActiveLinkResponseFilter instance.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: The current user.
\Drupal\Core\Path\CurrentPathStack $current_path: The current path.
\Drupal\Core\Path\PathMatcherInterface $path_matcher: The path matcher.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
File
- core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php, line 65
Class
- ActiveLinkResponseFilter
- Subscribes to filter HTML responses, to set the 'is-active' class on links.
Namespace
Drupal\Core\EventSubscriberCode
public function __construct(AccountInterface $current_user, CurrentPathStack $current_path, PathMatcherInterface $path_matcher, LanguageManagerInterface $language_manager) { $this->currentUser = $current_user; $this->currentPath = $current_path; $this->pathMatcher = $path_matcher; $this->languageManager = $language_manager; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!EventSubscriber!ActiveLinkResponseFilter.php/function/ActiveLinkResponseFilter::__construct/8.1.x