You are here

public function BlockPluginTrait::setConfiguration in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::setConfiguration()
  2. 9 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::setConfiguration()

File

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

Class

BlockPluginTrait
Provides the base implementation of a block plugin.

Namespace

Drupal\Core\Block

Code

public function setConfiguration(array $configuration) {
  $this->configuration = NestedArray::mergeDeep($this
    ->baseConfigurationDefaults(), $this
    ->defaultConfiguration(), $configuration);
}