You are here

public function BlockFieldSelectionBase::setConfiguration in Block field 8

Sets the configuration for this plugin instance.

Parameters

array $configuration: An associative array containing the plugin's configuration.

Overrides ConfigurableInterface::setConfiguration

1 call to BlockFieldSelectionBase::setConfiguration()
BlockFieldSelectionBase::__construct in src/BlockFieldSelectionBase.php
Constructs a new selection object.

File

src/BlockFieldSelectionBase.php, line 66

Class

BlockFieldSelectionBase
Base class for Block field selection plugins.

Namespace

Drupal\block_field

Code

public function setConfiguration(array $configuration) {

  // Merge in defaults.
  $this->configuration = NestedArray::mergeDeep($this
    ->defaultConfiguration(), $configuration);
}