You are here

public function WebformLocationGeocomplete::getPluginLabel in Webform 6.x

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

Gets the label of the plugin instance.

Return value

string The label of the plugin instance.

Overrides WebformElementBase::getPluginLabel

File

modules/webform_location_geocomplete/src/Plugin/WebformElement/WebformLocationGeocomplete.php, line 46

Class

WebformLocationGeocomplete
Provides an 'location' element using Geocomplete.

Namespace

Drupal\webform_location_geocomplete\Plugin\WebformElement

Code

public function getPluginLabel() {
  return $this->elementManager
    ->isExcluded('webform_location_places') ? $this
    ->t('Location') : parent::getPluginLabel();
}