public function BlockBase::setConfigurationValue in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Block/BlockBase.php \Drupal\Core\Block\BlockBase::setConfigurationValue()
Sets a particular value in the block settings.
@todo This doesn't belong here. Move this into a new base class in https://www.drupal.org/node/1764380. @todo This does not set a value in \Drupal::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.
Overrides BlockPluginInterface::setConfigurationValue
See also
\Drupal\Component\Plugin\PluginBase::$configuration
File
- core/
lib/ Drupal/ Core/ Block/ BlockBase.php, line 106 - Contains \Drupal\Core\Block\BlockBase.
Class
- BlockBase
- Defines a base block implementation that most blocks plugins will extend.
Namespace
Drupal\Core\BlockCode
public function setConfigurationValue($key, $value) {
$this->configuration[$key] = $value;
}