ResponsiveImageStyle::$keyedImageStyleMappings

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

ResponsiveImageStyle::$image_style_mappings

The image style mappings. Each image style mapping array contains the following keys: image_mapping_type: Either 'image_style' or 'sizes'. image_mapping: If image_mapping_type is 'image_style', the image style ID (a string). If image_mapping_type is 'sizes', an array with following keys: sizes: The value for the 'sizes' attribute. sizes_image_styles: The image styles to use for the 'srcset' attribute. breakpoint_id: The breakpoint ID for this image style mapping. multiplier: The multipli

ResponsiveImageStyle::$id

The responsive image ID (machine name). Type: string File core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 45 Class ResponsiveImageStyle Defines the responsive image style entity. Namespace Drupal\responsive_image\Entity Code protected $id;

ResponsiveImageStyle::$fallback_image_style

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

ResponsiveImageStyle::$breakpoint_group

The responsive image breakpoint group. Type: string File core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 83 Class ResponsiveImageStyle Defines the responsive image style entity. Namespace Drupal\responsive_image\Entity Code protected $breakpoint_group = '';

ResponsiveImageStyle

Defines the responsive image style entity. Plugin annotation @ConfigEntityType( id = "responsive_image_style", label = @Translation("Responsive image style"), handlers = { "list_builder" = "Drupal\responsive_image\ResponsiveImageStyleListBuilder", "form" = { "edit" = "Drupal\responsive_image\ResponsiveImageStyleForm", "add" = "Drupal\responsive_image\ResponsiveImageStyleForm", "delete" = "Drupal\Core\Entity\EntityDeleteForm", "duplicate" = "Drupal\responsiv

ResponsiveImage::getInfo

public ResponsiveImage::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/modules/responsive_image/src/Element/ResponsiveImage.php, line 17 Class ResponsiveImage Provides a responsive image element. Namespace Drupal\responsive_ima

ResponsiveImage

Provides a responsive image element. Plugin annotation @RenderElement("responsive_image") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Render\Element\RenderElement implements ElementInterfaceclass \Drupal\responsive_image\Element\ResponsiveImage File core/modules/responsive_image/src/Element/ResponsiveIm

responsive-image.html.twig

Default theme implementation of a responsive image. Available variables: sources: The attributes of the <source> tags for this <picture> tag. img_element: The controlling image, with the fallback image in srcset. output_image_tag: Whether or not to output an <img> tag instead of a <picture> tag. See also template_preprocess() template_preprocess_responsive_image() File core/modules/responsive_image/templates/responsive-image.html.twig Related topics Theme system

responsive-image-formatter.html.twig

Default theme implementation to display a formatted responsive image field. Available variables: responsive_image: A collection of responsive image data. url: An optional URL the image can be linked to. See also template_preprocess_responsive_image_formatter() File core/modules/responsive_image/templates/responsive-image-formatter.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.