You are here

public function Webp::submitConfigurationForm in WebP 8

File

src/Plugin/ImageAPIOptimizeProcessor/Webp.php, line 56

Class

Webp
Saves a WebP copy of an image style derivative.

Namespace

Drupal\webp\Plugin\ImageAPIOptimizeProcessor

Code

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