3 namespace Drupal\image;
6 * Interface for storage controller for "image style" configuration entities.
8 interface ImageStyleStorageInterface {
11 * Stores a replacement ID for an image style being deleted.
13 * The method stores a replacement style to be used by the configuration
14 * dependency system when a image style is deleted. The replacement style is
15 * replacing the deleted style in other configuration entities that are
16 * depending on the image style being deleted.
19 * The ID of the image style to be deleted.
20 * @param string $replacement
21 * The ID of the image style used as replacement.
23 public function setReplacementId($name, $replacement);
26 * Retrieves the replacement ID of a deleted image style.
28 * The method is retrieving the value stored by ::setReplacementId().
31 * The ID of the image style to be replaced.
34 * The ID of the image style used as replacement, if there's any, or NULL.
36 * @see \Drupal\image\ImageStyleStorageInterface::setReplacementId()
38 public function getReplacementId($name);
41 * Clears a replacement ID from the storage.
43 * The method clears the value previously stored with ::setReplacementId().
46 * The ID of the image style to be replaced.
48 * @see \Drupal\image\ImageStyleStorageInterface::setReplacementId()
50 public function clearReplacementId($name);