public function ImageAPIOptimizePipeline::getReplacementID in Image Optimize (or ImageAPI Optimize) 8.2
Same name and namespace in other branches
- 8.3 src/Entity/ImageAPIOptimizePipeline.php \Drupal\imageapi_optimize\Entity\ImageAPIOptimizePipeline::getReplacementID()
- 4.x src/Entity/ImageAPIOptimizePipeline.php \Drupal\imageapi_optimize\Entity\ImageAPIOptimizePipeline::getReplacementID()
Returns the replacement ID.
Return value
string|null The replacement image optimize pipeline ID or NULL if no replacement has been selected.
Overrides ImageAPIOptimizePipelineInterface::getReplacementID
Deprecated
in Drupal 8.0.x, will be removed before Drupal 9.0.x. Use \Drupal\imageapi_optimize\ImageAPIOptimizePipelineStorageInterface::getReplacementId() instead.
See also
\Drupal\imageapi_optimize\ImageAPIOptimizePipelineStorageInterface::getReplacementId()
File
- src/
Entity/ ImageAPIOptimizePipeline.php, line 264
Class
- ImageAPIOptimizePipeline
- Defines an image optimize pipeline configuration entity.
Namespace
Drupal\imageapi_optimize\EntityCode
public function getReplacementID() {
/** @var \Drupal\imageapi_optimize\ImageAPIOptimizePipelineStorageInterface $storage */
$storage = $this
->entityTypeManager()
->getStorage($this
->getEntityTypeId());
return $storage
->getReplacementId($this
->id());
}