You are here

protected function OptionsLimitWebformHandler::isBooleanElement in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php \Drupal\webform_options_limit\Plugin\WebformHandler\OptionsLimitWebformHandler::isBooleanElement()

Determine if boolean element.

Return value

string TRUE if boolean element.

1 call to OptionsLimitWebformHandler::isBooleanElement()
OptionsLimitWebformHandler::getSummary in modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php
Returns a render array summarizing the configuration of the webform handler.

File

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

Class

OptionsLimitWebformHandler
Webform options and boolean (boolean) limit handler.

Namespace

Drupal\webform_options_limit\Plugin\WebformHandler

Code

protected function isBooleanElement() {
  $webform_element = $this
    ->getWebformElement();
  return $webform_element instanceof BooleanBase;
}