ResponsiveImageStyle::hasImageStyleMappings

public ResponsiveImageStyle::hasImageStyleMappings() Checks if there is at least one mapping defined. Return value bool Whether the entity has any image style mappings. Overrides ResponsiveImageStyleInterface::hasImageStyleMappings File core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 125 Class ResponsiveImageStyle Defines the responsive image style entity. Namespace Drupal\responsive_image\Entity Code public function hasImageStyleMappings() { $mappings = $thi

ResponsiveImageStyle::getKeyedImageStyleMappings

public ResponsiveImageStyle::getKeyedImageStyleMappings() Returns the mappings of breakpoint ID and multiplier to image style. Return value array[] The image style mappings. Keyed by breakpoint ID then multiplier. The value is the image style mapping array with following keys: image_mapping_type: Either 'image_style' or 'sizes'. image_mapping: If image_mapping_type is 'image_style', the image style ID. If image_mapping_type is 'sizes', an array with following keys: sizes: The value for the '

ResponsiveImageStyle::getImageStyleMappings

public ResponsiveImageStyle::getImageStyleMappings() Returns the image style mappings for the responsive image style. Return value array[] An array of image style mappings. Each image style mapping array contains the following keys: breakpoint_id multiplier image_mapping_type image_mapping Overrides ResponsiveImageStyleInterface::getImageStyleMappings File core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 148 Class ResponsiveImageStyle Defines the responsive image

ResponsiveImageStyle::getImageStyleMapping

public ResponsiveImageStyle::getImageStyleMapping($breakpoint_id, $multiplier) Gets the image style mapping for a breakpoint ID and multiplier. Parameters string $breakpoint_id: The breakpoint ID. string $multiplier: The multiplier. Return value array|null The image style mapping. NULL if the mapping does not exist. The image style mapping has following keys: image_mapping_type: Either 'image_style' or 'sizes'. image_mapping: If image_mapping_type is 'image_style', the image style ID. If ima

ResponsiveImageStyle::getImageStyleIds

public ResponsiveImageStyle::getImageStyleIds() Gets all the image styles IDs involved in the responsive image mapping. Return value string[] Overrides ResponsiveImageStyleInterface::getImageStyleIds File core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 250 Class ResponsiveImageStyle Defines the responsive image style entity. Namespace Drupal\responsive_image\Entity Code public function getImageStyleIds() { $image_styles = [$this->getFallbackImageStyle()];

ResponsiveImageStyle::getFallbackImageStyle

public ResponsiveImageStyle::getFallbackImageStyle() Returns the fallback image style ID for the responsive image style. Return value string The fallback image style ID. Overrides ResponsiveImageStyleInterface::getFallbackImageStyle File core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 183 Class ResponsiveImageStyle Defines the responsive image style entity. Namespace Drupal\responsive_image\Entity Code public function getFallbackImageStyle() { return $this-&g

ResponsiveImageStyle::getBreakpointGroup

public ResponsiveImageStyle::getBreakpointGroup() Returns the breakpoint group for the responsive image style. Return value string The breakpoint group. Overrides ResponsiveImageStyleInterface::getBreakpointGroup File core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 168 Class ResponsiveImageStyle Defines the responsive image style entity. Namespace Drupal\responsive_image\Entity Code public function getBreakpointGroup() { return $this->breakpoint_group; }

ResponsiveImageStyle::calculateDependencies

public ResponsiveImageStyle::calculateDependencies() Calculates dependencies and stores them in the dependency property. Return value $this Overrides ConfigEntityBase::calculateDependencies See also \Drupal\Core\Config\Entity\ConfigDependencyManager File core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 199 Class ResponsiveImageStyle Defines the responsive image style entity. Namespace Drupal\responsive_image\Entity Code public function calculateDependencies() {

ResponsiveImageStyle::addImageStyleMapping

public ResponsiveImageStyle::addImageStyleMapping($breakpoint_id, $multiplier, array $image_style_mapping) Adds a image style mapping to the responsive image configuration entity. Parameters string $breakpoint_id: The breakpoint ID. string $multiplier: The multiplier. array $image_style_mapping: The mapping image style mapping. Return value $this Overrides ResponsiveImageStyleInterface::addImageStyleMapping File core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 102 Cl

ResponsiveImageStyle::$label

The responsive image label. Type: string File core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 52 Class ResponsiveImageStyle Defines the responsive image style entity. Namespace Drupal\responsive_image\Entity Code protected $label;