Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Checkboxes.php

function 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 181

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));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal