function ImageStyleStorageInterface::getReplacementId

Same name in other branches
  1. 9 core/modules/image/src/ImageStyleStorageInterface.php \Drupal\image\ImageStyleStorageInterface::getReplacementId()
  2. 10 core/modules/image/src/ImageStyleStorageInterface.php \Drupal\image\ImageStyleStorageInterface::getReplacementId()
  3. 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\image

Code

public function getReplacementId($name);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.