public function BlockBase::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Block/BlockBase.php \Drupal\Core\Block\BlockBase::__construct()
Overrides \Drupal\Component\Plugin\PluginBase::__construct().
Overrides the construction of context aware plugins to allow for unvalidated constructor based injection of contexts.
Parameters
array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array of context values keyed by context names.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Overrides ContextAwarePluginBase::__construct
15 calls to BlockBase::__construct()
- AggregatorFeedBlock::__construct in core/
modules/ aggregator/ src/ Plugin/ Block/ AggregatorFeedBlock.php - Constructs an AggregatorFeedBlock object.
- AjaxFormBlock::__construct in core/
modules/ system/ tests/ modules/ ajax_forms_test/ src/ Plugin/ Block/ AjaxFormBlock.php - Constructs a new AjaxFormBlock.
- BlockContentBlock::__construct in core/
modules/ block_content/ src/ Plugin/ Block/ BlockContentBlock.php - Constructs a new BlockContentBlock.
- BookNavigationBlock::__construct in core/
modules/ book/ src/ Plugin/ Block/ BookNavigationBlock.php - Constructs a new BookNavigationBlock instance.
- HelpBlock::__construct in core/
modules/ help/ src/ Plugin/ Block/ HelpBlock.php - Creates a HelpBlock instance.
15 methods override BlockBase::__construct()
- AggregatorFeedBlock::__construct in core/
modules/ aggregator/ src/ Plugin/ Block/ AggregatorFeedBlock.php - Constructs an AggregatorFeedBlock object.
- AjaxFormBlock::__construct in core/
modules/ system/ tests/ modules/ ajax_forms_test/ src/ Plugin/ Block/ AjaxFormBlock.php - Constructs a new AjaxFormBlock.
- BlockContentBlock::__construct in core/
modules/ block_content/ src/ Plugin/ Block/ BlockContentBlock.php - Constructs a new BlockContentBlock.
- BookNavigationBlock::__construct in core/
modules/ book/ src/ Plugin/ Block/ BookNavigationBlock.php - Constructs a new BookNavigationBlock instance.
- HelpBlock::__construct in core/
modules/ help/ src/ Plugin/ Block/ HelpBlock.php - Creates a HelpBlock instance.
File
- core/
lib/ Drupal/ Core/ Block/ BlockBase.php, line 58 - Contains \Drupal\Core\Block\BlockBase.
Class
- BlockBase
- Defines a base block implementation that most blocks plugins will extend.
Namespace
Drupal\Core\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this
->setConfiguration($configuration);
}