public function GroupContentEnablerBase::setConfiguration in Group 8
Sets the configuration for this plugin instance.
Parameters
array $configuration: An associative array containing the plugin's configuration.
Overrides ConfigurableInterface::setConfiguration
1 call to GroupContentEnablerBase::setConfiguration()
- GroupContentEnablerBase::__construct in src/
Plugin/ GroupContentEnablerBase.php - Constructs a \Drupal\Component\Plugin\PluginBase object.
File
- src/
Plugin/ GroupContentEnablerBase.php, line 465
Class
- GroupContentEnablerBase
- Provides a base class for GroupContentEnabler plugins.
Namespace
Drupal\group\PluginCode
public function setConfiguration(array $configuration) {
// Do not allow the changing of the group type ID after construction.
unset($configuration['group_type_id']);
// Merge in the default configuration.
$this->configuration = NestedArray::mergeDeep($this
->defaultConfiguration(), $configuration);
return $this;
}