protected function OptionsLimitWebformHandler::getElementLabel in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php \Drupal\webform_options_limit\Plugin\WebformHandler\OptionsLimitWebformHandler::getElementLabel()
Get selected webform element label.
Return value
string A webform element label.
2 calls to OptionsLimitWebformHandler::getElementLabel()
- OptionsLimitWebformHandler::getElementLimitStatusMessage in modules/
webform_options_limit/ src/ Plugin/ WebformHandler/ OptionsLimitWebformHandler.php - Get an options or boolean element's limit status message.
- OptionsLimitWebformHandler::setElementLimitReachedMessage in modules/
webform_options_limit/ src/ Plugin/ WebformHandler/ OptionsLimitWebformHandler.php - Set element's limit reached message.
File
- modules/
webform_options_limit/ src/ Plugin/ WebformHandler/ OptionsLimitWebformHandler.php, line 1069
Class
- OptionsLimitWebformHandler
- Webform options and boolean (boolean) limit handler.
Namespace
Drupal\webform_options_limit\Plugin\WebformHandlerCode
protected function getElementLabel() {
$element = $this
->getElement();
$webform_element = $this
->getWebformElement();
return $webform_element
->getLabel($element);
}