public function Blocks::setConfiguration in Context 8.4
Same name and namespace in other branches
- 8 src/Plugin/ContextReaction/Blocks.php \Drupal\context\Plugin\ContextReaction\Blocks::setConfiguration()
- 8.0 src/Plugin/ContextReaction/Blocks.php \Drupal\context\Plugin\ContextReaction\Blocks::setConfiguration()
Sets the configuration for this plugin instance.
Parameters
array $configuration: An associative array containing the plugin's configuration.
Overrides ContextReactionPluginBase::setConfiguration
1 call to Blocks::setConfiguration()
- Blocks::submitConfigurationForm in src/
Plugin/ ContextReaction/ Blocks.php - Form submission handler.
File
- src/
Plugin/ ContextReaction/ Blocks.php, line 402
Class
- Blocks
- Provides a content reaction.
Namespace
Drupal\context\Plugin\ContextReactionCode
public function setConfiguration(array $configuration) {
$this->configuration = $configuration + $this
->defaultConfiguration();
if (isset($configuration['blocks'])) {
$this->blocks = $configuration['blocks'];
}
return $this;
}