public function ImageAPIOptimizePipeline::getProcessors 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::getProcessors()
- 8.2 src/Entity/ImageAPIOptimizePipeline.php \Drupal\imageapi_optimize\Entity\ImageAPIOptimizePipeline::getProcessors()
Returns the image optimize processors for this pipeline.
The processors should be sorted, and will have been instantiated.
Return value
\Drupal\imageapi_optimize\ImageAPIOptimizeProcessorPluginCollection|\Drupal\imageapi_optimize\ImageAPIOptimizeProcessorInterface[] The image optimize processor plugin collection.
Overrides ImageAPIOptimizePipelineInterface::getProcessors
2 calls to ImageAPIOptimizePipeline::getProcessors()
- ImageAPIOptimizePipeline::applyToImage in src/
Entity/ ImageAPIOptimizePipeline.php - Creates a new image derivative based on this image optimize pipeline.
- ImageAPIOptimizePipeline::getPluginCollections in src/
Entity/ ImageAPIOptimizePipeline.php - Gets the plugin collections used by this object.
File
- src/
Entity/ ImageAPIOptimizePipeline.php, line 230
Class
- ImageAPIOptimizePipeline
- Defines an image optimize pipeline configuration entity.
Namespace
Drupal\imageapi_optimize\EntityCode
public function getProcessors() {
if (!$this->processorsCollection) {
$this->processorsCollection = $this
->getProcessorsCollection();
$this->processorsCollection
->sort();
}
return $this->processorsCollection;
}