public function WebformLocationPlaces::getPluginLabel in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/WebformLocationPlaces.php \Drupal\webform\Plugin\WebformElement\WebformLocationPlaces::getPluginLabel()
Gets the label of the plugin instance.
Return value
string The label of the plugin instance.
Overrides WebformElementBase::getPluginLabel
File
- src/
Plugin/ WebformElement/ WebformLocationPlaces.php, line 42
Class
- WebformLocationPlaces
- Provides an 'location' element using Algolia Places.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function getPluginLabel() {
return $this->elementManager
->isExcluded('webform_location_geocomplete') ? $this
->t('Location') : parent::getPluginLabel();
}