public function ArgumentCollector::__construct in Simple XML sitemap 8.3
Same name and namespace in other branches
- 4.x modules/simple_sitemap_views/src/EventSubscriber/ArgumentCollector.php \Drupal\simple_sitemap_views\EventSubscriber\ArgumentCollector::__construct()
ArgumentCollector constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager.
\Drupal\simple_sitemap_views\SimpleSitemapViews $sitemap_views: Views sitemap data.
\Drupal\Core\Routing\RouteMatchInterface $route_match: The currently active route match object.
File
- modules/
simple_sitemap_views/ src/ EventSubscriber/ ArgumentCollector.php, line 48
Class
- ArgumentCollector
- Collect information about views arguments.
Namespace
Drupal\simple_sitemap_views\EventSubscriberCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, SimpleSitemapViews $sitemap_views, RouteMatchInterface $route_match) {
$this->viewStorage = $entity_type_manager
->getStorage('view');
$this->sitemapViews = $sitemap_views;
$this->routeMatch = $route_match;
}