ImageStyleStorage::getReplacementId

public ImageStyleStorage::getReplacementId($name) 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 core/modules/image/src/ImageSt

ImageStyleStorage::clearReplacementId

public ImageStyleStorage::clearReplacementId($name) Clears a replacement ID from the storage. The method clears the value previously stored with ::setReplacementId(). Parameters string $name: The ID of the image style to be replaced. Overrides ImageStyleStorageInterface::clearReplacementId See also \Drupal\image\ImageStyleStorageInterface::setReplacementId() File core/modules/image/src/ImageStyleStorage.php, line 42 Class ImageStyleStorage Storage controller class for "image style" confi

ImageStyleStorage::$replacement

Image style replacement memory storage. This value is not stored in the backend. It's used during the deletion of an image style to save the replacement image style in the same request. The value is used later, when resolving dependencies. Type: string[] See also \Drupal\image\Form\ImageStyleDeleteForm::submitForm() File core/modules/image/src/ImageStyleStorage.php, line 23 Class ImageStyleStorage Storage controller class for "image style" configuration entities. Namespace Drupal\image

ImageStyleStorage

Storage controller class for "image style" configuration entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityStorageBase implements EntityHandlerInterface, EntityStorageInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityStorage implements ConfigEntityStorageInterface, ImportableEntityStorageInterfaceclass \Drupal\image\ImageStyleStorage implements ImageStyleStorageInterface File core/mo

ImageStyleListBuilder::render

public ImageStyleListBuilder::render() Builds the entity listing as renderable array for table.html.twig. @todo Add a link to add a new item to the #empty text. Overrides EntityListBuilder::render File core/modules/image/src/ImageStyleListBuilder.php, line 50 Class ImageStyleListBuilder Defines a class to build a listing of image style entities. Namespace Drupal\image Code public function render() { $build = parent::render(); $build['table']['#empty'] = $this->t('There are curr

ImageStyleListBuilder::getDefaultOperations

public ImageStyleListBuilder::getDefaultOperations(EntityInterface $entity) Gets this list's default operations. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for. Return value array The array structure is identical to the return value of self::getOperations(). Overrides ConfigEntityListBuilder::getDefaultOperations File core/modules/image/src/ImageStyleListBuilder.php, line 35 Class ImageStyleListBuilder Defines a class to build a listing of image

ImageStyleListBuilder::buildRow

public ImageStyleListBuilder::buildRow(EntityInterface $entity) Builds a row for an entity in the entity listing. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list. Return value array A render array structure of fields for this entity. Overrides EntityListBuilder::buildRow See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/image/src/ImageStyleListBuilder.php, line 27 Class ImageStyleListBuilder Defines a class to build a

ImageStyleListBuilder::buildHeader

public ImageStyleListBuilder::buildHeader() Builds the header row for the entity listing. Return value array A render array structure of header strings. Overrides EntityListBuilder::buildHeader See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/image/src/ImageStyleListBuilder.php, line 19 Class ImageStyleListBuilder Defines a class to build a listing of image style entities. Namespace Drupal\image Code public function buildHeader() { $header['label'] = $this

ImageStyleListBuilder

Defines a class to build a listing of image style entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityListBuilder implements EntityHandlerInterface, EntityListBuilderInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityListBuilderclass \Drupal\image\ImageStyleListBuilder See also \Drupal\image\Entity\ImageStyle File core/modules/image/src/ImageStyleListBuilder.php, line 14 Namespace

ImageStyleInterface::transformDimensions

public ImageStyleInterface::transformDimensions(array &$dimensions, $uri) Determines the dimensions of this image style. Stores the dimensions of this image style into $dimensions associative array. Implementations have to provide at least values to next keys: width: Integer with the derivative image width. height: Integer with the derivative image height. Parameters array $dimensions: Associative array passed by reference. Implementations have to store the resulting width and height,