function BlockPluginTrait::__construct

25 calls to BlockPluginTrait::__construct()
AjaxFormBlock::__construct in core/modules/system/tests/modules/ajax_forms_test/src/Plugin/Block/AjaxFormBlock.php
Constructs a new AjaxFormBlock.
AnnounceBlock::__construct in core/modules/announcements_feed/src/Plugin/Block/AnnounceBlock.php
Constructs a new AnnouncementsFeedBlock instance.
AutowireBlock::__construct in core/modules/system/tests/modules/autowire_test/src/Plugin/Block/AutowireBlock.php
AutowireErrorBlock::__construct in core/modules/system/tests/modules/autowire_test/src/Plugin/Block/AutowireErrorBlock.php
BlockContentBlock::__construct in core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
Constructs a new BlockContentBlock.

... See full list

26 methods override BlockPluginTrait::__construct()
AjaxFormBlock::__construct in core/modules/system/tests/modules/ajax_forms_test/src/Plugin/Block/AjaxFormBlock.php
Constructs a new AjaxFormBlock.
AnnounceBlock::__construct in core/modules/announcements_feed/src/Plugin/Block/AnnounceBlock.php
Constructs a new AnnouncementsFeedBlock instance.
AutowireBlock::__construct in core/modules/system/tests/modules/autowire_test/src/Plugin/Block/AutowireBlock.php
AutowireErrorBlock::__construct in core/modules/system/tests/modules/autowire_test/src/Plugin/Block/AutowireErrorBlock.php
BlockContentBlock::__construct in core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
Constructs a new BlockContentBlock.

... 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.