public function ImageBorderEffect::submitConfigurationForm in Image effect kit 8
Form submission handler.
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 form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().
Overrides ConfigurableImageEffectBase::submitConfigurationForm
File
- src/
Plugin/ ImageEffect/ ImageBorderEffect.php, line 138 - Contains \Drupal\iek\Plugin\ImageEffect\ImageBorderEffect.
Class
- ImageBorderEffect
- IEK - Resize.
Namespace
Drupal\iek\Plugin\ImageEffectCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
parent::submitConfigurationForm($form, $form_state);
$this->configuration['border_color'] = $form_state
->getValue('border_color');
$this->configuration['border_thick_top'] = $form_state
->getValue('border_thick_top');
$this->configuration['border_thick_right'] = $form_state
->getValue('border_thick_right');
$this->configuration['border_thick_bottom'] = $form_state
->getValue('border_thick_bottom');
$this->configuration['border_thick_left'] = $form_state
->getValue('border_thick_left');
}