You are here

protected function OptionsLimitWebformHandler::getElement 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::getElement()

Get element.

Return value

array Selected element.

6 calls to OptionsLimitWebformHandler::getElement()
OptionsLimitWebformHandler::buildConfigurationForm in modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php
Form constructor.
OptionsLimitWebformHandler::buildSummaryTable in modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php
Build summary table.
OptionsLimitWebformHandler::getBooleanLimits in modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php
Get an associative array of boolean limits.
OptionsLimitWebformHandler::getElementLabel in modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php
Get selected webform element label.
OptionsLimitWebformHandler::getElementOptions in modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php
Get selected element's options.

... See full list

File

modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php, line 1031

Class

OptionsLimitWebformHandler
Webform options and boolean (boolean) limit handler.

Namespace

Drupal\webform_options_limit\Plugin\WebformHandler

Code

protected function getElement() {
  return $this
    ->getWebform()
    ->getElement($this->configuration['element_key']);
}