ResponsiveImageStyleForm::form

public ResponsiveImageStyleForm::form(array $form, FormStateInterface $form_state) Overrides Drupal\Core\Entity\EntityForm::form(). Parameters array $form: A nested array form elements comprising the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The array containing the complete form. Overrides EntityForm::form File core/modules/responsive_image/src/ResponsiveImageStyleForm.php, line 52 Class ResponsiveImageStyleForm Form contro

ResponsiveImageStyleForm::create

public static ResponsiveImageStyleForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The

ResponsiveImageStyleForm::breakpointMappingFormAjax

public ResponsiveImageStyleForm::breakpointMappingFormAjax($form, FormStateInterface $form_state) Get the form for mapping breakpoints to image styles. File core/modules/responsive_image/src/ResponsiveImageStyleForm.php, line 210 Class ResponsiveImageStyleForm Form controller for the responsive image edit/add forms. Namespace Drupal\responsive_image Code public function breakpointMappingFormAjax($form, FormStateInterface $form_state) { return $form['keyed_styles']; }

ResponsiveImageStyleForm::$breakpointManager

The breakpoint manager. Type: \Drupal\breakpoint\BreakpointManagerInterface File core/modules/responsive_image/src/ResponsiveImageStyleForm.php, line 20 Class ResponsiveImageStyleForm Form controller for the responsive image edit/add forms. Namespace Drupal\responsive_image Code protected $breakpointManager;

ResponsiveImageStyleForm

Form controller for the responsive image edit/add forms. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\responsive_image\ResponsiveImageStyleForm File core/modules/responsive_image/src/ResponsiveImageStyleForm.php, line 1

ResponsiveImageStyle::__construct

public ResponsiveImageStyle::__construct(array $values, $entity_type_id = 'responsive_image_style') Constructs an Entity object. Parameters array $values: An array of values to set, keyed by property name. If the entity type has bundles, the bundle key has to be specified. string $entity_type: The type of the entity to create. Overrides ConfigEntityBase::__construct File core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 95 Class ResponsiveImageStyle Defines the respo

ResponsiveImageStyle::setFallbackImageStyle

public ResponsiveImageStyle::setFallbackImageStyle($fallback_image_style) Sets the fallback image style for the responsive image style. Parameters string $fallback_image_style: The fallback image style ID. Return value $this Overrides ResponsiveImageStyleInterface::setFallbackImageStyle File core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 175 Class ResponsiveImageStyle Defines the responsive image style entity. Namespace Drupal\responsive_image\Entity Code pub

ResponsiveImageStyle::setBreakpointGroup

public ResponsiveImageStyle::setBreakpointGroup($breakpoint_group) Sets the breakpoint group for the responsive image style. Parameters string $breakpoint_group: The responsive image style breakpoint group. Return value $this Overrides ResponsiveImageStyleInterface::setBreakpointGroup File core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 155 Class ResponsiveImageStyle Defines the responsive image style entity. Namespace Drupal\responsive_image\Entity Code publi

ResponsiveImageStyle::removeImageStyleMappings

public ResponsiveImageStyle::removeImageStyleMappings() Removes all image style mappings from the responsive image style. Return value $this Overrides ResponsiveImageStyleInterface::removeImageStyleMappings File core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 190 Class ResponsiveImageStyle Defines the responsive image style entity. Namespace Drupal\responsive_image\Entity Code public function removeImageStyleMappings() { $this->image_style_mappings = array

ResponsiveImageStyle::isEmptyImageStyleMapping

public static ResponsiveImageStyle::isEmptyImageStyleMapping(array $image_style_mapping) Checks if there is at least one image style mapping defined. Parameters array $image_style_mapping: The image style mapping. Return value bool Whether the image style mapping is empty. Overrides ResponsiveImageStyleInterface::isEmptyImageStyleMapping File core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 216 Class ResponsiveImageStyle Defines the responsive image style entity.