You are here

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

Remove options element's reached options.

Parameters

array $element: An options element with limits.

array $reached: An options element's reached options.

1 call to OptionsLimitWebformHandler::removeOptionsElement()
OptionsLimitWebformHandler::alterOptionsElement in modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php
Alter an options element.

File

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

Class

OptionsLimitWebformHandler
Webform options and boolean (boolean) limit handler.

Namespace

Drupal\webform_options_limit\Plugin\WebformHandler

Code

protected function removeOptionsElement(array &$element, array $reached) {
  $options =& $element['#options'];
  $this
    ->removeOptionsElementRecursive($options, $reached);
}