You are here

public function YamlFormHandlerBase::getLabel in YAML Form 8

Returns the label of the form handler.

Return value

int|string Either the integer label of the form handler, or an empty string.

Overrides YamlFormHandlerInterface::getLabel

2 calls to YamlFormHandlerBase::getLabel()
YamlFormHandlerBase::getConfiguration in src/YamlFormHandlerBase.php
Gets this plugin's configuration.
YamlFormHandlerBase::label in src/YamlFormHandlerBase.php
Returns the form handler label.

File

src/YamlFormHandlerBase.php, line 171

Class

YamlFormHandlerBase
Provides a base class for a form handler.

Namespace

Drupal\yamlform

Code

public function getLabel() {
  return $this->label ?: $this->pluginDefinition['label'];
}