public function BlockBase::setConfig

Sets a particular value in the block settings.

@todo This doesn't belong here. Move this into a new base class in http://drupal.org/node/1764380. @todo This does not set a value in config(), so the name is confusing.

Parameters

string $key: The key of PluginBase::$configuration to set.

mixed $value: The value to set for the provided key.

See also

\Drupal\Component\Plugin\PluginBase::$configuration

File

drupal/core/modules/block/lib/Drupal/block/BlockBase.php, line 81
Contains \Drupal\block\BlockBase.

Class

BlockBase
Defines a base block implementation that most blocks plugins will extend.

Namespace

Drupal\block

Code

public function setConfig($key, $value) {
  $this->configuration[$key] = $value;
}