You are here

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

ViewsUrlGenerator constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\simple_sitemap\Simplesitemap $generator: The simple_sitemap.generator service.

\Drupal\simple_sitemap\SitemapGenerator $sitemap_generator: The simple_sitemap.sitemap_generator service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

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

\Drupal\simple_sitemap\Logger $logger: The simple_sitemap.logger service.

\Drupal\simple_sitemap\EntityHelper $entity_helper: The simple_sitemap.entity_helper service.

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

\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider.

File

src/Plugin/simple_sitemap/UrlGenerator/ViewsUrlGenerator.php, line 90
Contains Views URL generator.

Class

ViewsUrlGenerator
Views URL generator plugin.

Namespace

Drupal\simple_sitemap_views\Plugin\simple_sitemap\UrlGenerator

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Simplesitemap $generator, SitemapGenerator $sitemap_generator, LanguageManagerInterface $language_manager, EntityTypeManagerInterface $entity_type_manager, Logger $logger, EntityHelper $entity_helper, SimpleSitemapViews $simple_sitemap_views, RouteProviderInterface $route_provider) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $generator, $sitemap_generator, $language_manager, $entity_type_manager, $logger, $entity_helper);
  $this->simpleSitemapViews = $simple_sitemap_views;
  $this->routeProvider = $route_provider;
  $this->viewStorage = $entity_type_manager
    ->getStorage('view');
}