You are here

public function JpegOptim::submitConfigurationForm in Image Optimize Binaries 8

Overrides ImageAPIOptimizeProcessorBinaryBase::submitConfigurationForm

File

src/Plugin/ImageAPIOptimizeProcessor/JpegOptim.php, line 116

Class

JpegOptim
Uses the JpegOptim binary to optimize images.

Namespace

Drupal\imageapi_optimize_binaries\Plugin\ImageAPIOptimizeProcessor

Code

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