You are here

public function WebformAddress::getPluginLabel in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformElement/WebformAddress.php \Drupal\webform\Plugin\WebformElement\WebformAddress::getPluginLabel()

Gets the label of the plugin instance.

Return value

string The label of the plugin instance.

Overrides WebformElementBase::getPluginLabel

File

src/Plugin/WebformElement/WebformAddress.php, line 25

Class

WebformAddress
Provides an 'address' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

public function getPluginLabel() {
  return $this->moduleHandler
    ->moduleExists('address') ? $this
    ->t('Basic address') : parent::getPluginLabel();
}