public function ImageAPIOptimizePipeline::getProcessor in Image Optimize (or ImageAPI Optimize) 4.x
Same name and namespace in other branches
- 8.3 src/Entity/ImageAPIOptimizePipeline.php \Drupal\imageapi_optimize\Entity\ImageAPIOptimizePipeline::getProcessor()
- 8.2 src/Entity/ImageAPIOptimizePipeline.php \Drupal\imageapi_optimize\Entity\ImageAPIOptimizePipeline::getProcessor()
Returns a specific image optimize processor.
Parameters
string $processor: The image optimize processor ID.
Return value
\Drupal\imageapi_optimize\ImageAPIOptimizeProcessorInterface The image optimize processor object.
Overrides ImageAPIOptimizePipelineInterface::getProcessor
File
- src/
Entity/ ImageAPIOptimizePipeline.php, line 223
Class
- ImageAPIOptimizePipeline
- Defines an image optimize pipeline configuration entity.
Namespace
Drupal\imageapi_optimize\EntityCode
public function getProcessor($processor) {
return $this
->getProcessors()
->get($processor);
}