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

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;
}
doc_Drupal
2016-10-29 09:38:01
Comments
Leave a Comment

Please login to continue.