function PluginBase::__construct
Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\PluginBase::__construct()
- 10 core/lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\PluginBase::__construct()
- 11.x core/lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\PluginBase::__construct()
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.
10 calls to PluginBase::__construct()
- BreakLockLink::__construct in core/
lib/ Drupal/ Core/ TempStore/ Element/ BreakLockLink.php - Constructs a new BreakLockLink.
- Broken::__construct in core/
lib/ Drupal/ Core/ Block/ Plugin/ Block/ Broken.php - Creates a Broken Block instance.
- ConditionPluginBase::__construct in core/
lib/ Drupal/ Core/ Condition/ ConditionPluginBase.php - Constructs a \Drupal\Component\Plugin\PluginBase object.
- ContextAwarePluginBase::__construct in core/
lib/ Drupal/ Component/ Plugin/ ContextAwarePluginBase.php - Overrides \Drupal\Component\Plugin\PluginBase::__construct().
- ImageToolkitBase::__construct in core/
lib/ Drupal/ Core/ ImageToolkit/ ImageToolkitBase.php - Constructs an ImageToolkitBase object.
9 methods override PluginBase::__construct()
- BreakLockLink::__construct in core/
lib/ Drupal/ Core/ TempStore/ Element/ BreakLockLink.php - Constructs a new BreakLockLink.
- ConditionPluginBase::__construct in core/
lib/ Drupal/ Core/ Condition/ ConditionPluginBase.php - Constructs a \Drupal\Component\Plugin\PluginBase object.
- ContextAwarePluginBase::__construct in core/
lib/ Drupal/ Component/ Plugin/ ContextAwarePluginBase.php - Overrides \Drupal\Component\Plugin\PluginBase::__construct().
- ImageToolkitBase::__construct in core/
lib/ Drupal/ Core/ ImageToolkit/ ImageToolkitBase.php - Constructs an ImageToolkitBase object.
- ImageToolkitOperationBase::__construct in core/
lib/ Drupal/ Core/ ImageToolkit/ ImageToolkitOperationBase.php - Constructs an image toolkit operation plugin.
File
-
core/
lib/ Drupal/ Component/ Plugin/ PluginBase.php, line 53
Class
- PluginBase
- Base class for plugins wishing to support metadata inspection.
Namespace
Drupal\Component\PluginCode
public function __construct(array $configuration, $plugin_id, $plugin_definition) {
$this->configuration = $configuration;
$this->pluginId = $plugin_id;
$this->pluginDefinition = $plugin_definition;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.