You are here

public function GD::submitConfigurationForm in ImageAPI Optimize GD 8

Same name and namespace in other branches
  1. 2.x src/Plugin/ImageAPIOptimizeProcessor/GD.php \Drupal\imageapi_optimize_gd\Plugin\ImageAPIOptimizeProcessor\GD::submitConfigurationForm()

File

src/Plugin/ImageAPIOptimizeProcessor/GD.php, line 94

Class

GD
Provides a ImageAPI Optimize processor for GD.

Namespace

Drupal\imageapi_optimize_gd\Plugin\ImageAPIOptimizeProcessor

Code

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