function ResponsiveImageStyle::setBreakpointGroup
Same name in other branches
- 9 core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php \Drupal\responsive_image\Entity\ResponsiveImageStyle::setBreakpointGroup()
- 10 core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php \Drupal\responsive_image\Entity\ResponsiveImageStyle::setBreakpointGroup()
- 11.x core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php \Drupal\responsive_image\Entity\ResponsiveImageStyle::setBreakpointGroup()
Overrides ResponsiveImageStyleInterface::setBreakpointGroup
File
-
core/
modules/ responsive_image/ src/ Entity/ ResponsiveImageStyle.php, line 169
Class
- ResponsiveImageStyle
- Defines the responsive image style entity.
Namespace
Drupal\responsive_image\EntityCode
public function setBreakpointGroup($breakpoint_group) {
// If the breakpoint group is changed then the image style mappings are
// invalid.
if ($breakpoint_group !== $this->breakpoint_group) {
$this->removeImageStyleMappings();
}
$this->breakpoint_group = $breakpoint_group;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.