You are here

public function ImageStyleStorage::clearReplacementId in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/image/src/ImageStyleStorage.php \Drupal\image\ImageStyleStorage::clearReplacementId()
  2. 9 core/modules/image/src/ImageStyleStorage.php \Drupal\image\ImageStyleStorage::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 style to be replaced.

Overrides ImageStyleStorageInterface::clearReplacementId

See also

\Drupal\image\ImageStyleStorageInterface::setReplacementId()

File

core/modules/image/src/ImageStyleStorage.php, line 42

Class

ImageStyleStorage
Storage controller class for "image style" configuration entities.

Namespace

Drupal\image

Code

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