You are here

public function SvgIconBuilder::setLabel in Drupal 8

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

Sets the label.

Parameters

string $label: The label of the layout.

Return value

$this

Overrides IconBuilderInterface::setLabel

File

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

Class

SvgIconBuilder
Builds SVG layout icons.

Namespace

Drupal\Core\Layout\Icon

Code

public function setLabel($label) {
  $this->label = $label;
  return $this;
}