public function SvgIconBuilder::setId in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Layout/Icon/SvgIconBuilder.php \Drupal\Core\Layout\Icon\SvgIconBuilder::setId()
- 9 core/lib/Drupal/Core/Layout/Icon/SvgIconBuilder.php \Drupal\Core\Layout\Icon\SvgIconBuilder::setId()
Sets the ID.
Parameters
string $id: The machine name of the layout.
Return value
$this
Overrides IconBuilderInterface::setId
File
- core/
lib/ Drupal/ Core/ Layout/ Icon/ SvgIconBuilder.php, line 245
Class
- SvgIconBuilder
- Builds SVG layout icons.
Namespace
Drupal\Core\Layout\IconCode
public function setId($id) {
$this->id = $id;
return $this;
}