public static function Checkboxes::detectEmptyCheckboxes in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Render/Element/Checkboxes.php \Drupal\Core\Render\Element\Checkboxes::detectEmptyCheckboxes()
Determines if all checkboxes in a set are unchecked.
Parameters
array $input: An array returned by the FormAPI for a set of checkboxes.
Return value
bool TRUE if all options are unchecked. FALSE otherwise.
1 call to Checkboxes::detectEmptyCheckboxes()
- FilterPluginBase::acceptExposedInput in core/
modules/ views/ src/ Plugin/ views/ filter/ FilterPluginBase.php - Determines if the input from a filter should change the generated query.
File
- core/
lib/ Drupal/ Core/ Render/ Element/ Checkboxes.php, line 157
Class
- Checkboxes
- Provides a form element for a set of checkboxes.
Namespace
Drupal\Core\Render\ElementCode
public static function detectEmptyCheckboxes(array $input) {
return empty(static::getCheckedCheckboxes($input));
}