public function RequestPreparer::__construct in Tome 8
Constructs a RequestPreparer object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\tome_static\LazyResettableContextRepository $context_repository: The decorated context repository.
\Drupal\tome_static\ResettablePathMatcher $path_matcher: The decorated path matcher.
\Drupal\Core\Menu\MenuActiveTrailInterface $menu_active_trail: The menu active trail cache collector.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
File
- modules/
tome_static/ src/ RequestPreparer.php, line 82
Class
- RequestPreparer
- Utility class to prepare Drupal for new requests.
Namespace
Drupal\tome_staticCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, LazyResettableContextRepository $context_repository, ResettablePathMatcher $path_matcher, MenuActiveTrailInterface $menu_active_trail, EventDispatcherInterface $event_dispatcher, LanguageManagerInterface $language_manager) {
$this->entityTypeManager = $entity_type_manager;
$this->contextRepository = $context_repository;
$this->pathMatcher = $path_matcher;
$this->menuActiveTrail = $menu_active_trail;
$this->eventDispatcher = $event_dispatcher;
$this->languageManager = $language_manager;
}