You are here

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

File

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

Class

ViewsUrlGenerator
Views URL generator plugin.

Namespace

Drupal\simple_sitemap_views\Plugin\simple_sitemap\UrlGenerator

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('simple_sitemap.generator'), $container
    ->get('simple_sitemap.sitemap_generator'), $container
    ->get('language_manager'), $container
    ->get('entity_type.manager'), $container
    ->get('simple_sitemap.logger'), $container
    ->get('simple_sitemap.entity_helper'), $container
    ->get('simple_sitemap_views'), $container
    ->get('router.route_provider'));
}