Checkboxes::detectEmptyCheckboxes

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));
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.