You are here

public function SvgIconBuilder::setHeight in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Layout/Icon/SvgIconBuilder.php \Drupal\Core\Layout\Icon\SvgIconBuilder::setHeight()
  2. 9 core/lib/Drupal/Core/Layout/Icon/SvgIconBuilder.php \Drupal\Core\Layout\Icon\SvgIconBuilder::setHeight()

Sets the height.

Parameters

int $height: The height of the SVG.

Return value

$this

Overrides IconBuilderInterface::setHeight

File

core/lib/Drupal/Core/Layout/Icon/SvgIconBuilder.php, line 269

Class

SvgIconBuilder
Builds SVG layout icons.

Namespace

Drupal\Core\Layout\Icon

Code

public function setHeight($height) {
  $this->height = $height;
  return $this;
}