function ImageStyleStorageInterface::getReplacementId
Same name in other branches
- 9 core/modules/image/src/ImageStyleStorageInterface.php \Drupal\image\ImageStyleStorageInterface::getReplacementId()
- 10 core/modules/image/src/ImageStyleStorageInterface.php \Drupal\image\ImageStyleStorageInterface::getReplacementId()
- 11.x core/modules/image/src/ImageStyleStorageInterface.php \Drupal\image\ImageStyleStorageInterface::getReplacementId()
Retrieves the replacement ID of a deleted image style.
The method is retrieving the value stored by ::setReplacementId().
Parameters
string $name: The ID of the image style to be replaced.
Return value
string|null The ID of the image style used as replacement, if there's any, or NULL.
See also
\Drupal\image\ImageStyleStorageInterface::setReplacementId()
1 method overrides ImageStyleStorageInterface::getReplacementId()
- ImageStyleStorage::getReplacementId in core/
modules/ image/ src/ ImageStyleStorage.php - Retrieves the replacement ID of a deleted image style.
File
-
core/
modules/ image/ src/ ImageStyleStorageInterface.php, line 38
Class
- ImageStyleStorageInterface
- Interface for storage controller for "image style" configuration entities.
Namespace
Drupal\imageCode
public function getReplacementId($name);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.