function BlockPluginTrait::setConfiguration

Same name in other branches
  1. 9 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::setConfiguration()
  2. 10 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::setConfiguration()
  3. 11.x core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::setConfiguration()
1 call to BlockPluginTrait::setConfiguration()
BlockPluginTrait::__construct in core/lib/Drupal/Core/Block/BlockPluginTrait.php

File

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

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

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