function BlockPluginInterface::setConfigurationValue
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Block/BlockPluginInterface.php \Drupal\Core\Block\BlockPluginInterface::setConfigurationValue()
- 10 core/lib/Drupal/Core/Block/BlockPluginInterface.php \Drupal\Core\Block\BlockPluginInterface::setConfigurationValue()
- 11.x core/lib/Drupal/Core/Block/BlockPluginInterface.php \Drupal\Core\Block\BlockPluginInterface::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.
See also
\Drupal\Component\Plugin\PluginBase::$configuration
File
-
core/
lib/ Drupal/ Core/ Block/ BlockPluginInterface.php, line 93
Class
- BlockPluginInterface
- Defines the required interface for all block plugins.
Namespace
Drupal\Core\BlockCode
public function setConfigurationValue($key, $value);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.