You are here

public function BlockPluginTrait::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::__construct()
22 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

22 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.
ExtraFieldBlock::__construct in core/modules/layout_builder/src/Plugin/Block/ExtraFieldBlock.php
Constructs a new ExtraFieldBlock.

... See full list

File

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

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);
}