You are here

public function ResponsiveImageStyle::setFallbackImageStyle in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php \Drupal\responsive_image\Entity\ResponsiveImageStyle::setFallbackImageStyle()
  2. 10 core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php \Drupal\responsive_image\Entity\ResponsiveImageStyle::setFallbackImageStyle()

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 189

Class

ResponsiveImageStyle
Defines the responsive image style entity.

Namespace

Drupal\responsive_image\Entity

Code

public function setFallbackImageStyle($fallback_image_style) {
  $this->fallback_image_style = $fallback_image_style;
  return $this;
}