function Details::getInfo

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

Overrides ElementInterface::getInfo

File

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

Class

Details
Provides a render element for a details element, similar to a fieldset.

Namespace

Drupal\Core\Render\Element

Code

public function getInfo() {
    $class = static::class;
    return [
        '#open' => FALSE,
        '#summary_attributes' => [],
        '#value' => NULL,
        '#process' => [
            [
                $class,
                'processGroup',
            ],
            [
                $class,
                'processAjaxForm',
            ],
        ],
        '#pre_render' => [
            [
                $class,
                'preRenderDetails',
            ],
            [
                $class,
                'preRenderGroup',
            ],
        ],
        '#theme_wrappers' => [
            'details',
        ],
    ];
}

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