public function WebformHandlerBase::setConfiguration in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformHandlerBase.php \Drupal\webform\Plugin\WebformHandlerBase::setConfiguration()
Sets the configuration for this plugin instance.
Parameters
array $configuration: An associative array containing the plugin's configuration.
Overrides ConfigurableInterface::setConfiguration
2 calls to WebformHandlerBase::setConfiguration()
- EmailWebformHandler::setConfiguration in src/
Plugin/ WebformHandler/ EmailWebformHandler.php - Sets the configuration for this plugin instance.
- WebformHandlerBase::__construct in src/
Plugin/ WebformHandlerBase.php - Constructs a WebformHandlerBase object.
1 method overrides WebformHandlerBase::setConfiguration()
- EmailWebformHandler::setConfiguration in src/
Plugin/ WebformHandler/ EmailWebformHandler.php - Sets the configuration for this plugin instance.
File
- src/
Plugin/ WebformHandlerBase.php, line 476
Class
- WebformHandlerBase
- Provides a base class for a webform handler.
Namespace
Drupal\webform\PluginCode
public function setConfiguration(array $configuration) {
$configuration += [
'handler_id' => '',
'label' => '',
'notes' => '',
'status' => 1,
'conditions' => [],
'weight' => '',
'settings' => [],
];
$this->configuration = $configuration['settings'] + $this
->defaultConfiguration();
$this->handler_id = $configuration['handler_id'];
$this->label = $configuration['label'];
$this->notes = $configuration['notes'];
$this->status = $configuration['status'];
$this->conditions = $configuration['conditions'];
$this->weight = $configuration['weight'];
return $this;
}