You are here

public function ImageStyleStorage::setReplacementId in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/image/src/ImageStyleStorage.php \Drupal\image\ImageStyleStorage::setReplacementId()

Stores a replacement ID for an image style being deleted.

The method stores a replacement style to be used by the configuration dependency system when an image style is deleted. The replacement style is replacing the deleted style in other configuration entities that are depending on the image style being deleted.

Parameters

string $name: The ID of the image style to be deleted.

string $replacement: The ID of the image style used as replacement.

Overrides ImageStyleStorageInterface::setReplacementId

File

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

Class

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

Namespace

Drupal\image

Code

public function setReplacementId($name, $replacement) {
  $this->replacement[$name] = $replacement;
}