public function EntityHooks::__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/ EntityHooks.php, line 51
Class
- EntityHooks
- Plugin annotation @Converter( id = "entity_hooks", description = @Translation("Rewrites various entity-related hooks."), hook = { "hook_comment_delete", "hook_comment_insert", "hook_comment_presave", "hook_comment_update", …
Namespace
Drupal\drupalmoduleupgrader\Plugin\DMU\ConverterCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, TranslationInterface $translator, LoggerInterface $log, PluginManagerInterface $rewriters) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $translator, $log);
$this->rewriters = $rewriters;
}