protected function ImageAPIOptimizeProcessorEditForm::prepareImageAPIOptimizeProcessor in Image Optimize (or ImageAPI Optimize) 8.3
Same name and namespace in other branches
- 8.2 src/Form/ImageAPIOptimizeProcessorEditForm.php \Drupal\imageapi_optimize\Form\ImageAPIOptimizeProcessorEditForm::prepareImageAPIOptimizeProcessor()
- 4.x 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\FormCode
protected function prepareImageAPIOptimizeProcessor($imageapi_optimize_processor) {
return $this->imageAPIOptimizePipeline
->getProcessor($imageapi_optimize_processor);
}