function PluginBase::__construct
Same name in this branch
- 10 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::__construct()
Same name and namespace in other branches
- 9 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::__construct()
- 9 core/lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\PluginBase::__construct()
- 8.9.x core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::__construct()
- 8.9.x core/lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\PluginBase::__construct()
- 11.x core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\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.
85 calls to PluginBase::__construct()
- Ajax::__construct in core/
lib/ Drupal/ Core/ Render/ Element/ Ajax.php - Constructs a \Drupal\Component\Plugin\PluginBase object.
- BlockPluginId::__construct in core/
modules/ block/ src/ Plugin/ migrate/ process/ BlockPluginId.php - Constructs a BlockPluginId object.
- BlockRegion::__construct in core/
modules/ block/ src/ Plugin/ migrate/ process/ BlockRegion.php - Constructs a BlockRegion plugin instance.
- BlockTheme::__construct in core/
modules/ block/ src/ Plugin/ migrate/ process/ BlockTheme.php - Constructs a BlockTheme object.
- BlockVisibility::__construct in core/
modules/ block/ src/ Plugin/ migrate/ process/ BlockVisibility.php - Constructs a BlockVisibility object.
87 methods override PluginBase::__construct()
- Ajax::__construct in core/
lib/ Drupal/ Core/ Render/ Element/ Ajax.php - Constructs a \Drupal\Component\Plugin\PluginBase object.
- BlockPluginId::__construct in core/
modules/ block/ src/ Plugin/ migrate/ process/ BlockPluginId.php - Constructs a BlockPluginId object.
- BlockRegion::__construct in core/
modules/ block/ src/ Plugin/ migrate/ process/ BlockRegion.php - Constructs a BlockRegion plugin instance.
- BlockTheme::__construct in core/
modules/ block/ src/ Plugin/ migrate/ process/ BlockTheme.php - Constructs a BlockTheme object.
- BlockVisibility::__construct in core/
modules/ block/ src/ Plugin/ migrate/ process/ BlockVisibility.php - Constructs a BlockVisibility object.
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.