public function ImageAPIOptimizePipelineStorage::setReplacementId in Image Optimize (or ImageAPI Optimize) 8.2
Same name and namespace in other branches
- 8.3 src/ImageAPIOptimizePipelineStorage.php \Drupal\imageapi_optimize\ImageAPIOptimizePipelineStorage::setReplacementId()
- 4.x src/ImageAPIOptimizePipelineStorage.php \Drupal\imageapi_optimize\ImageAPIOptimizePipelineStorage::setReplacementId()
Stores a replacement ID for an image optimize pipeline being deleted.
The method stores a replacement pipeline to be used by the configuration dependency system when a image optimize pipeline is deleted. The replacement pipeline is replacing the deleted pipeline in other configuration entities that are depending on the image optimize pipeline being deleted.
Parameters
string $name: The ID of the image optimize pipeline to be deleted.
string $replacement: The ID of the image optimize pipeline used as replacement.
Overrides ImageAPIOptimizePipelineStorageInterface::setReplacementId
File
- src/
ImageAPIOptimizePipelineStorage.php, line 28
Class
- ImageAPIOptimizePipelineStorage
- Storage controller class for "image optimize pipeline" configuration entities.
Namespace
Drupal\imageapi_optimizeCode
public function setReplacementId($name, $replacement) {
$this->replacement[$name] = $replacement;
}