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

public static function detectEmptyCheckboxes(array $input) {
  return empty(static::getCheckedCheckboxes($input));
}
doc_Drupal
2016-10-29 08:49:55
Comments
Leave a Comment

Please login to continue.