You are here

protected function ImageAPIOptimizeProcessorEditForm::prepareImageAPIOptimizeProcessor in Image Optimize (or ImageAPI Optimize) 4.x

Same name and namespace in other branches
  1. 8.3 src/Form/ImageAPIOptimizeProcessorEditForm.php \Drupal\imageapi_optimize\Form\ImageAPIOptimizeProcessorEditForm::prepareImageAPIOptimizeProcessor()
  2. 8.2 src/Form/ImageAPIOptimizeProcessorEditForm.php \Drupal\imageapi_optimize\Form\ImageAPIOptimizeProcessorEditForm::prepareImageAPIOptimizeProcessor()

Converts an image optimize processor ID into an object.

Parameters

string $imageapi_optimize_processor: The image optimize processor ID.

Return value

\Drupal\imageapi_optimize\ImageAPIOptimizeProcessorInterface The image optimize processor object.

Overrides ImageAPIOptimizeProcessorFormBase::prepareImageAPIOptimizeProcessor

File

src/Form/ImageAPIOptimizeProcessorEditForm.php, line 28

Class

ImageAPIOptimizeProcessorEditForm
Provides an edit form for image optimize processors.

Namespace

Drupal\imageapi_optimize\Form

Code

protected function prepareImageAPIOptimizeProcessor($imageapi_optimize_processor) {
  return $this->imageAPIOptimizePipeline
    ->getProcessor($imageapi_optimize_processor);
}