You are here

public function WebformVariantBase::getLabel in Webform 8.5

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

Returns the label of the webform variant.

Return value

string The label of the webform variant, or an empty string.

Overrides WebformVariantInterface::getLabel

2 calls to WebformVariantBase::getLabel()
WebformVariantBase::getConfiguration in src/Plugin/WebformVariantBase.php
Gets this plugin's configuration.
WebformVariantBase::label in src/Plugin/WebformVariantBase.php
Returns the webform variant label.

File

src/Plugin/WebformVariantBase.php, line 194

Class

WebformVariantBase
Provides a base class for a webform variant.

Namespace

Drupal\webform\Plugin

Code

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