You are here

public function Links::__construct in Drupal 7 to 8/9 Module Upgrader 8

Constructs a Links object.

Parameters

array $configuration: Additional configuration for the plugin.

string $plugin_id: The plugin ID, will be "Links".

string $plugin_definition: The plugin definition as derived from the annotations.

\Drupal\Component\Plugin\PluginManagerInterface $route_converters: The plugin manager for route converters, used by HookMenu.

Overrides PluginBase::__construct

File

src/Plugin/DMU/Converter/Links.php, line 58

Class

Links
Plugin annotation @Converter( id = "links", description = @Translation("Converts Drupal 7's hook_menu() links to plugin definitions."), hook = "hook_menu", fixme = @Translation("@FIXME This implementation of hook_menu() cannot be automatically…

Namespace

Drupal\drupalmoduleupgrader\Plugin\DMU\Converter

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, TranslationInterface $translator, LoggerInterface $log, PluginManagerInterface $route_converters, LinkBindingFactory $link_binding) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $translator, $log);
  $this->routeConverters = $route_converters;
  $this->linkBinding = $link_binding;
}