function ImageStyleStorageInterface::setReplacementId
Same name in other branches
- 8.9.x core/modules/image/src/ImageStyleStorageInterface.php \Drupal\image\ImageStyleStorageInterface::setReplacementId()
- 10 core/modules/image/src/ImageStyleStorageInterface.php \Drupal\image\ImageStyleStorageInterface::setReplacementId()
- 11.x core/modules/image/src/ImageStyleStorageInterface.php \Drupal\image\ImageStyleStorageInterface::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.
1 method overrides ImageStyleStorageInterface::setReplacementId()
- ImageStyleStorage::setReplacementId in core/
modules/ image/ src/ ImageStyleStorage.php - Stores a replacement ID for an image style being deleted.
File
-
core/
modules/ image/ src/ ImageStyleStorageInterface.php, line 25
Class
- ImageStyleStorageInterface
- Interface for storage controller for "image style" configuration entities.
Namespace
Drupal\imageCode
public function setReplacementId($name, $replacement);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.