function ConfigurableEventHandlerBase::extractConfigurationFormValues
Overrides RulesConfigurableEventHandlerInterface::extractConfigurationFormValues
File
-
src/
EventHandler/ ConfigurableEventHandlerBase.php, line 24
Class
- ConfigurableEventHandlerBase
- Base class for event handler.
Namespace
Drupal\rules\EventHandlerCode
public function extractConfigurationFormValues(array &$form, FormStateInterface $form_state) {
foreach ($this->defaultConfiguration() as $key => $configuration) {
$this->configuration[$key] = $form_state->hasValue($key) ? $form_state->getValue($key) : $configuration;
}
}