You are here

public static function ViewsUrlGenerator::create in Simple XML sitemap 4.x

Same name and namespace in other branches
  1. 8.3 modules/simple_sitemap_views/src/Plugin/simple_sitemap/UrlGenerator/ViewsUrlGenerator.php \Drupal\simple_sitemap_views\Plugin\simple_sitemap\UrlGenerator\ViewsUrlGenerator::create()

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container:

array $configuration:

string $plugin_id:

mixed $plugin_definition:

Return value

static

Overrides EntityUrlGeneratorBase::create

File

modules/simple_sitemap_views/src/Plugin/simple_sitemap/UrlGenerator/ViewsUrlGenerator.php, line 96

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) : SimpleSitemapPluginBase {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('simple_sitemap.logger'), $container
    ->get('simple_sitemap.settings'), $container
    ->get('language_manager'), $container
    ->get('entity_type.manager'), $container
    ->get('simple_sitemap.entity_helper'), $container
    ->get('simple_sitemap.views'), $container
    ->get('router.route_provider'));
}