You are here

public function ContextReactionPluginBase::setConfiguration in Context 8.4

Same name and namespace in other branches
  1. 8 src/ContextReactionPluginBase.php \Drupal\context\ContextReactionPluginBase::setConfiguration()
  2. 8.0 src/ContextReactionPluginBase.php \Drupal\context\ContextReactionPluginBase::setConfiguration()

Sets the configuration for this plugin instance.

Parameters

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

Overrides ConfigurableInterface::setConfiguration

7 calls to ContextReactionPluginBase::setConfiguration()
BodyClass::submitConfigurationForm in src/Plugin/ContextReaction/BodyClass.php
Form submission handler.
ContextReactionPluginBase::__construct in src/ContextReactionPluginBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
Menu::submitConfigurationForm in src/Plugin/ContextReaction/Menu.php
Form submission handler.
PageTemplateSuggestions::submitConfigurationForm in src/Plugin/ContextReaction/PageTemplateSuggestions.php
Form submission handler.
PageTitle::submitConfigurationForm in src/Plugin/ContextReaction/PageTitle.php
Form submission handler.

... See full list

1 method overrides ContextReactionPluginBase::setConfiguration()
Blocks::setConfiguration in src/Plugin/ContextReaction/Blocks.php
Sets the configuration for this plugin instance.

File

src/ContextReactionPluginBase.php, line 44

Class

ContextReactionPluginBase
Provides a plugin base for Context Reactions.

Namespace

Drupal\context

Code

public function setConfiguration(array $configuration) {
  $this->configuration = $configuration + $this
    ->defaultConfiguration();
  return $this;
}