You are here

public function JpegTran::buildConfigurationForm in Image Optimize Binaries 8

Overrides ImageAPIOptimizeProcessorBinaryBase::buildConfigurationForm

File

src/Plugin/ImageAPIOptimizeProcessor/JpegTran.php, line 60

Class

JpegTran
Uses the JpegTran binary to optimize images.

Namespace

Drupal\imageapi_optimize_binaries\Plugin\ImageAPIOptimizeProcessor

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
  $form = parent::buildConfigurationForm($form, $form_state);
  $form['progressive'] = array(
    '#title' => $this
      ->t('Progressive'),
    '#type' => 'checkbox',
    '#default_value' => $this->configuration['progressive'],
  );
  return $form;
}