You are here

public function ImageSelectionImageEffect::submitConfigurationForm in Image Effects 8

Same name and namespace in other branches
  1. 8.3 tests/modules/image_effects_module_test/src/Plugin/ImageEffect/ImageSelectionImageEffect.php \Drupal\image_effects_module_test\Plugin\ImageEffect\ImageSelectionImageEffect::submitConfigurationForm()
  2. 8.2 tests/modules/image_effects_module_test/src/Plugin/ImageEffect/ImageSelectionImageEffect.php \Drupal\image_effects_module_test\Plugin\ImageEffect\ImageSelectionImageEffect::submitConfigurationForm()

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

tests/modules/image_effects_module_test/src/Plugin/ImageEffect/ImageSelectionImageEffect.php, line 85

Class

ImageSelectionImageEffect
Test effect that uses the image selector plugin to get an image.

Namespace

Drupal\image_effects_module_test\Plugin\ImageEffect

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  parent::submitConfigurationForm($form, $form_state);
  $this->configuration['image_uri'] = $form_state
    ->getValue('image_uri');
}