You are here

public function ImageStyleStorageDecorator::getReplacementId in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Entity/Decorators/Config/ImageStyleStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ImageStyleStorageDecorator::getReplacementId()
  2. 8 webprofiler/src/Entity/Decorators/Config/ImageStyleStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ImageStyleStorageDecorator::getReplacementId()
  3. 8.2 webprofiler/src/Entity/Decorators/Config/ImageStyleStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ImageStyleStorageDecorator::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.

Overrides ImageStyleStorageInterface::getReplacementId

See also

\Drupal\image\ImageStyleStorageInterface::setReplacementId()

File

webprofiler/src/Entity/Decorators/Config/ImageStyleStorageDecorator.php, line 22

Class

ImageStyleStorageDecorator
Class ImageStyleStorageDecorator.

Namespace

Drupal\webprofiler\Entity\Decorators\Config

Code

public function getReplacementId($name) {
  return $this
    ->getOriginalObject()
    ->getReplacementId($name);
}