public static Checkboxes::detectEmptyCheckboxes(array $input)
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.
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\Element
Code
1 2 3 | public static function detectEmptyCheckboxes( array $input ) { return empty ( static ::getCheckedCheckboxes( $input )); } |
Please login to continue.