You are here

public function SvgIconBuilder::setWidth 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::setWidth()
  2. 9 core/lib/Drupal/Core/Layout/Icon/SvgIconBuilder.php \Drupal\Core\Layout\Icon\SvgIconBuilder::setWidth()

Sets the width.

Parameters

int $width: The width of the SVG.

Return value

$this

Overrides IconBuilderInterface::setWidth

File

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

Class

SvgIconBuilder
Builds SVG layout icons.

Namespace

Drupal\Core\Layout\Icon

Code

public function setWidth($width) {
  $this->width = $width;
  return $this;
}