You are here

public function MenuLinkConfig::__construct in Config menu link 8

Same name in this branch
  1. 8 src/Plugin/Derivative/MenuLinkConfig.php \Drupal\menu_link_config\Plugin\Derivative\MenuLinkConfig::__construct()
  2. 8 src/Plugin/Menu/MenuLinkConfig.php \Drupal\menu_link_config\Plugin\Menu\MenuLinkConfig::__construct()

Constructs a MenuLinkConfig.

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\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity manager.

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

\Drupal\config_translation\ConfigMapperManagerInterface $mapper_manager: The config translation mapper manager.

Overrides MenuLinkContent::__construct

File

src/Plugin/Menu/MenuLinkConfig.php, line 58
Contains \Drupal\menu_link_config\Plugin\Menu\MenuLinkConfig.

Class

MenuLinkConfig
Provides a menu link plugin based upon storage in config.

Namespace

Drupal\menu_link_config\Plugin\Menu

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_manager, LanguageManagerInterface $language_manager, ConfigMapperManagerInterface $mapper_manager = NULL) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_manager, $language_manager);
  $this->mapperManager = $mapper_manager;
}