You are here

public function ImageAPIOptimizePipelineStorage::getReplacementId in Image Optimize (or ImageAPI Optimize) 8.3

Same name and namespace in other branches
  1. 8.2 src/ImageAPIOptimizePipelineStorage.php \Drupal\imageapi_optimize\ImageAPIOptimizePipelineStorage::getReplacementId()
  2. 4.x src/ImageAPIOptimizePipelineStorage.php \Drupal\imageapi_optimize\ImageAPIOptimizePipelineStorage::getReplacementId()

Retrieves the replacement ID of a deleted image optimize pipeline.

The method is retrieving the value stored by ::setReplacementId().

Parameters

string $name: The ID of the image optimize pipeline to be replaced.

Return value

string|null The ID of the image optimize pipeline used as replacement, if there's any, or NULL.

Overrides ImageAPIOptimizePipelineStorageInterface::getReplacementId

See also

\Drupal\imageapi_optimize\ImageAPIOptimizePipelineStorageInterface::setReplacementId()

File

src/ImageAPIOptimizePipelineStorage.php, line 35

Class

ImageAPIOptimizePipelineStorage
Storage controller class for "image optimize pipeline" configuration entities.

Namespace

Drupal\imageapi_optimize

Code

public function getReplacementId($name) {
  return isset($this->replacement[$name]) ? $this->replacement[$name] : NULL;
}