public function URL::__construct in Drupal 7 to 8/9 Module Upgrader 8
Constructs a \Drupal\Component\Plugin\PluginBase object.
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.
Overrides PluginBase::__construct
File
- src/
Plugin/ DMU/ Converter/ Functions/ URL.php, line 29
Class
- URL
- Plugin annotation @Converter( id = "url", description = @Translation("Rewrites calls to url()."), fixme = @Translation("url() expects a route name or an external URI."), dependencies = { "router.route_provider" } )
Namespace
Drupal\drupalmoduleupgrader\Plugin\DMU\Converter\FunctionsCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, TranslationInterface $translator, LoggerInterface $log, RouteProviderInterface $route_provider) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $translator, $log);
$this->routeProvider = $route_provider;
}