You are here

public function RateWidget::setLabel in Rate 8.2

Set the rate widget label.

Parameters

string $label: The rate widget label.

Return value

\Drupal\message\RateWidgetInterface Returns the rate widget instance.

Overrides RateWidgetInterface::setLabel

File

src/Entity/RateWidget.php, line 120

Class

RateWidget
Defines the Rate Widget configuration entity.

Namespace

Drupal\rate\Entity

Code

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