public function SvgIconBuilder::setStrokeWidth in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Layout/Icon/SvgIconBuilder.php \Drupal\Core\Layout\Icon\SvgIconBuilder::setStrokeWidth()
- 9 core/lib/Drupal/Core/Layout/Icon/SvgIconBuilder.php \Drupal\Core\Layout\Icon\SvgIconBuilder::setStrokeWidth()
Sets the stroke width.
Parameters
int|null $stroke_width: The width of region borders.
Return value
$this
Overrides IconBuilderInterface::setStrokeWidth
File
- core/
lib/ Drupal/ Core/ Layout/ Icon/ SvgIconBuilder.php, line 285
Class
- SvgIconBuilder
- Builds SVG layout icons.
Namespace
Drupal\Core\Layout\IconCode
public function setStrokeWidth($stroke_width) {
$this->strokeWidth = $stroke_width;
return $this;
}