ResponsiveImageStyleInterface::getImageStyleMappings

public ResponsiveImageStyleInterface::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 File core/modules/responsive_image/src/ResponsiveImageStyleInterface.php, line 49 Class ResponsiveImageStyleInterface Provides an interface defining a responsive_image mapping entity. Names

ResponsiveImageStyleInterface::getImageStyleMapping

public ResponsiveImageStyleInterface::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 I

ResponsiveImageStyleInterface::getImageStyleIds

public ResponsiveImageStyleInterface::getImageStyleIds() Gets all the image styles IDs involved in the responsive image mapping. Return value string[] File core/modules/responsive_image/src/ResponsiveImageStyleInterface.php, line 147 Class ResponsiveImageStyleInterface Provides an interface defining a responsive_image mapping entity. Namespace Drupal\responsive_image Code public function getImageStyleIds();

ResponsiveImageStyleInterface::getFallbackImageStyle

public ResponsiveImageStyleInterface::getFallbackImageStyle() Returns the fallback image style ID for the responsive image style. Return value string The fallback image style ID. File core/modules/responsive_image/src/ResponsiveImageStyleInterface.php, line 85 Class ResponsiveImageStyleInterface Provides an interface defining a responsive_image mapping entity. Namespace Drupal\responsive_image Code public function getFallbackImageStyle();

ResponsiveImageStyleInterface::getBreakpointGroup

public ResponsiveImageStyleInterface::getBreakpointGroup() Returns the breakpoint group for the responsive image style. Return value string The breakpoint group. File core/modules/responsive_image/src/ResponsiveImageStyleInterface.php, line 67 Class ResponsiveImageStyleInterface Provides an interface defining a responsive_image mapping entity. Namespace Drupal\responsive_image Code public function getBreakpointGroup();

ResponsiveImageStyleInterface::addImageStyleMapping

public ResponsiveImageStyleInterface::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 File core/modules/responsive_image/src/ResponsiveImageStyleInterface.php, line 133 Class ResponsiveImageStyleInterface Provides an int

ResponsiveImageStyleInterface

Provides an interface defining a responsive_image mapping entity. Hierarchy interface \Drupal\Core\Entity\EntityInterface; interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityInterfaceinterface \Drupal\responsive_image\ResponsiveImageStyleInterface File core/modules/responsive_image/src/ResponsiveImageStyleInterface.php, line 10 Namespace Drupal\responsive_image Members Name Modifiers Type Description AccessibleInt

ResponsiveImageStyleForm::__construct

public ResponsiveImageStyleForm::__construct(BreakpointManagerInterface $breakpoint_manager) Constructs the responsive image style form. Parameters \Drupal\breakpoint\BreakpointManagerInterface $breakpoint_manager: The breakpoint manager. File core/modules/responsive_image/src/ResponsiveImageStyleForm.php, line 37 Class ResponsiveImageStyleForm Form controller for the responsive image edit/add forms. Namespace Drupal\responsive_image Code public function __construct(BreakpointManagerI

ResponsiveImageStyleForm::validateForm

public ResponsiveImageStyleForm::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/responsive_image/src/ResponsiveImageStyleForm.php, line 217 Class ResponsiveImageStyleForm Form controller for the responsive image edit/add forms. Namespa

ResponsiveImageStyleForm::save

public ResponsiveImageStyleForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on