You are here

public function ArgumentCollector::__construct in Simple XML sitemap (Views integration) 8

ArgumentCollector constructor.

Parameters

\Drupal\simple_sitemap_views\SimpleSitemapViews $simple_sitemap_views: Views sitemap data.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The currently active route match object.

File

src/EventSubscriber/ArgumentCollector.php, line 53
Contains argument collector.

Class

ArgumentCollector
Collect information about views URLs.

Namespace

Drupal\simple_sitemap_views\EventSubscriber

Code

public function __construct(SimpleSitemapViews $simple_sitemap_views, EntityTypeManagerInterface $entity_type_manager, RouteMatchInterface $route_match) {
  $this->simpleSitemapViews = $simple_sitemap_views;
  $this->viewStorage = $entity_type_manager
    ->getStorage('view');
  $this->routeMatch = $route_match;
}