protected function OptionsLimitWebformHandler::removeOptionsElement 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::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 729
Class
- OptionsLimitWebformHandler
- Webform options and boolean (boolean) limit handler.
Namespace
Drupal\webform_options_limit\Plugin\WebformHandlerCode
protected function removeOptionsElement(array &$element, array $reached) {
$options =& $element['#options'];
$this
->removeOptionsElementRecursive($options, $reached);
}