You are here

public function WebformAddressLoqate::getPluginLabel in Loqate 8

Same name and namespace in other branches
  1. 2.x modules/pca_webform/src/Plugin/WebformElement/WebformAddressLoqate.php \Drupal\pca_webform\Plugin\WebformElement\WebformAddressLoqate::getPluginLabel()

Gets the label of the plugin instance.

Return value

string The label of the plugin instance.

Overrides WebformElementBase::getPluginLabel

File

modules/pca_webform/src/Plugin/WebformElement/WebformAddressLoqate.php, line 27

Class

WebformAddressLoqate
Provides an 'address' element.

Namespace

Drupal\pca_webform\Plugin\WebformElement

Code

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