public function PngQuant::submitConfigurationForm in Image Optimize Binaries 8
Overrides ImageAPIOptimizeProcessorBinaryBase::submitConfigurationForm
File
- src/
Plugin/ ImageAPIOptimizeProcessor/ PngQuant.php, line 131
Class
- PngQuant
- Uses the PngQuant binary to optimize images.
Namespace
Drupal\imageapi_optimize_binaries\Plugin\ImageAPIOptimizeProcessorCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
parent::submitConfigurationForm($form, $form_state);
$this->configuration['speed'] = $form_state
->getValue('speed');
$this->configuration['quality'] = $form_state
->getValue('quality');
}