You are here

protected function OptionsLimitWebformHandler::getElementLabel in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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 1085

Class

OptionsLimitWebformHandler
Webform options and boolean (boolean) limit handler.

Namespace

Drupal\webform_options_limit\Plugin\WebformHandler

Code

protected function getElementLabel() {
  $element = $this
    ->getElement();
  $webform_element = $this
    ->getWebformElement();
  return $webform_element
    ->getLabel($element);
}