function Checkboxes::getInfo

Same name in other branches
  1. 9 core/lib/Drupal/Core/Render/Element/Checkboxes.php \Drupal\Core\Render\Element\Checkboxes::getInfo()
  2. 8.9.x core/lib/Drupal/Core/Render/Element/Checkboxes.php \Drupal\Core\Render\Element\Checkboxes::getInfo()
  3. 11.x core/lib/Drupal/Core/Render/Element/Checkboxes.php \Drupal\Core\Render\Element\Checkboxes::getInfo()

Overrides ElementInterface::getInfo

File

core/lib/Drupal/Core/Render/Element/Checkboxes.php, line 44

Class

Checkboxes
Provides a form element for a set of checkboxes.

Namespace

Drupal\Core\Render\Element

Code

public function getInfo() {
    $class = static::class;
    return [
        '#input' => TRUE,
        '#process' => [
            [
                $class,
                'processCheckboxes',
            ],
        ],
        '#pre_render' => [
            [
                $class,
                'preRenderCompositeFormElement',
            ],
        ],
        '#theme_wrappers' => [
            'checkboxes',
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.