You are here

public function ImageAPIOptimizePipelineStorage::clearReplacementId in Image Optimize (or ImageAPI Optimize) 4.x

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

Clears a replacement ID from the storage.

The method clears the value previously stored with ::setReplacementId().

Parameters

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

Overrides ImageAPIOptimizePipelineStorageInterface::clearReplacementId

See also

\Drupal\imageapi_optimize\ImageAPIOptimizePipelineStorageInterface::setReplacementId()

File

src/ImageAPIOptimizePipelineStorage.php, line 42

Class

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

Namespace

Drupal\imageapi_optimize

Code

public function clearReplacementId($name) {
  unset($this->replacement[$name]);
}