You are here

public function WebformVariantBase::setLabel in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformVariantBase.php \Drupal\webform\Plugin\WebformVariantBase::setLabel()

Sets the label for this webform variant.

Parameters

string $label: The label for this webform variant.

Return value

$this

Overrides WebformVariantInterface::setLabel

File

src/Plugin/WebformVariantBase.php, line 186

Class

WebformVariantBase
Provides a base class for a webform variant.

Namespace

Drupal\webform\Plugin

Code

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