You are here

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

Constructs a Routing object.

Parameters

array $configuration: Additional configuration for the plugin.

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

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

\Drupal\Component\Plugin\PluginManagerInterface $route_converters:

Overrides PluginBase::__construct

File

src/Plugin/DMU/Converter/Routing.php, line 50

Class

Routing
Plugin annotation @Converter( id = "routing", description = @Translation("Converts parts of hook_menu() to the Drupal 8 routing system."), 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) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $translator, $log);
  $this->routeConverters = $route_converters;
}