public function PluginBase::__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
11 calls to PluginBase::__construct()
- ContentRoute::__construct in src/
Plugin/ DMU/ Routing/ ContentRoute.php - Constructs a RouteConverterBase object.
- EntityHooks::__construct in src/
Plugin/ DMU/ Converter/ EntityHooks.php - Constructs a \Drupal\Component\Plugin\PluginBase object.
- Generic::__construct in src/
Plugin/ DMU/ Rewriter/ Generic.php - Constructs a \Drupal\Component\Plugin\PluginBase object.
- Grep::__construct in src/
Plugin/ DMU/ Converter/ Grep.php - Constructs a \Drupal\Component\Plugin\PluginBase object.
- HookEntityTypeView::__construct in src/
Plugin/ DMU/ Converter/ HookEntityTypeView.php - Constructs a \Drupal\Component\Plugin\PluginBase object.
11 methods override PluginBase::__construct()
- ContentRoute::__construct in src/
Plugin/ DMU/ Routing/ ContentRoute.php - Constructs a RouteConverterBase object.
- EntityHooks::__construct in src/
Plugin/ DMU/ Converter/ EntityHooks.php - Constructs a \Drupal\Component\Plugin\PluginBase object.
- Generic::__construct in src/
Plugin/ DMU/ Rewriter/ Generic.php - Constructs a \Drupal\Component\Plugin\PluginBase object.
- Grep::__construct in src/
Plugin/ DMU/ Converter/ Grep.php - Constructs a \Drupal\Component\Plugin\PluginBase object.
- HookEntityTypeView::__construct in src/
Plugin/ DMU/ Converter/ HookEntityTypeView.php - Constructs a \Drupal\Component\Plugin\PluginBase object.
File
- src/
PluginBase.php, line 24
Class
- PluginBase
- Base class for all DMU plugin types, pulling string translation and logging services from the container by default.
Namespace
Drupal\drupalmoduleupgraderCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, TranslationInterface $translator, LoggerInterface $log) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->stringTranslation = $translator;
$this->log = $log;
}