You are here

public function LoqatePcaAddress::getPluginLabel in Loqate 2.x

Gets the label of the plugin instance.

Return value

string The label of the plugin instance.

Overrides WebformElementBase::getPluginLabel

File

src/Plugin/WebformElement/LoqatePcaAddress.php, line 29

Class

LoqatePcaAddress
Provides a 'PCA address' element.

Namespace

Drupal\loqate\Plugin\WebformElement

Code

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