public function ConfigurableEventHandlerBase::extractConfigurationFormValues in Rules 8.3
Extract the form values and update the event configuration.
Parameters
array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the complete form.
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;
}
}