You are here

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

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

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container:

array $configuration:

string $plugin_id:

mixed $plugin_definition:

Return value

static

Overrides EntityUrlGeneratorBase::create

File

src/Plugin/simple_sitemap/UrlGenerator/EntityMenuLinkContentUrlGenerator.php, line 73

Class

EntityMenuLinkContentUrlGenerator
Class EntityMenuLinkContentUrlGenerator @package Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator

Namespace

Drupal\simple_sitemap\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.logger'), $container
    ->get('language_manager'), $container
    ->get('entity_type.manager'), $container
    ->get('simple_sitemap.entity_helper'), $container
    ->get('menu.link_tree'));
}