function BlockPluginTrait::__construct

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::__construct()
  2. 10 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::__construct()
  3. 11.x core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::__construct()
23 calls to BlockPluginTrait::__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.
ExtraFieldBlock::__construct in core/modules/layout_builder/src/Plugin/Block/ExtraFieldBlock.php
Constructs a new ExtraFieldBlock.

... See full list

24 methods override BlockPluginTrait::__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.
Broken::__construct in core/lib/Drupal/Core/Block/Plugin/Block/Broken.php
Creates a Broken Block instance.

... See full list

File

core/lib/Drupal/Core/Block/BlockPluginTrait.php, line 64

Class

BlockPluginTrait
Provides the base implementation of a block plugin.

Namespace

Drupal\Core\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->setConfiguration($configuration);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.