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

Breadcrumb

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

function 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',
        ],
    ];
}

API Navigation

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