public function RedirectSubscriber::__construct in Url Redirect 8
Same name and namespace in other branches
- 8.2 src/EventSubscriber/RedirectSubscriber.php \Drupal\url_redirect\EventSubscriber\RedirectSubscriber::__construct()
RedirectSubscriber constructor.
Parameters
\Drupal\Core\Path\CurrentPathStack $currentPathStack: Current path stack service.
\Drupal\Core\Path\PathMatcher $pathMatcher: Path matcher service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManagerInterface: Entity type manager service.
\Drupal\Core\Session\AccountProxy $currentUser: Current user service.
\Drupal\Core\StringTranslation\TranslationManager $stringTranslation: Translation manager service.
\Drupal\Core\Entity\Query\QueryFactory $queryFactory: Entity query service.
File
- src/
EventSubscriber/ RedirectSubscriber.php, line 75
Class
Namespace
Drupal\url_redirect\EventSubscriberCode
public function __construct(CurrentPathStack $currentPathStack, PathMatcher $pathMatcher, EntityTypeManagerInterface $entityTypeManagerInterface, AccountProxy $currentUser, TranslationManager $stringTranslation, QueryFactory $queryFactory) {
$this->currentPathStack = $currentPathStack;
$this->pathMatcher = $pathMatcher;
$this->entityTypeManagerInterface = $entityTypeManagerInterface;
$this->currentUser = $currentUser;
$this->stringTranslation = $stringTranslation;
$this->queryFactory = $queryFactory;
}