You are here

public static function SimplesitemapPluginBase::create in Simple XML sitemap 8.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/simple_sitemap/SimplesitemapPluginBase.php \Drupal\simple_sitemap\Plugin\simple_sitemap\SimplesitemapPluginBase::create()
  2. 4.x src/Plugin/simple_sitemap/SimpleSitemapPluginBase.php \Drupal\simple_sitemap\Plugin\simple_sitemap\SimpleSitemapPluginBase::create()

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container:

array $configuration:

string $plugin_id:

mixed $plugin_definition:

Return value

static

Overrides ContainerFactoryPluginInterface::create

2 methods override SimplesitemapPluginBase::create()
SitemapGeneratorBase::create in src/Plugin/simple_sitemap/SitemapGenerator/SitemapGeneratorBase.php
Creates an instance of the plugin.
UrlGeneratorBase::create in src/Plugin/simple_sitemap/UrlGenerator/UrlGeneratorBase.php
Creates an instance of the plugin.

File

src/Plugin/simple_sitemap/SimplesitemapPluginBase.php, line 33

Class

SimplesitemapPluginBase
Class UrlGeneratorBase @package Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator

Namespace

Drupal\simple_sitemap\Plugin\simple_sitemap

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition);
}