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

Breadcrumb

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

function Dropbutton::getInfo

Overrides ElementInterface::getInfo

2 calls to Dropbutton::getInfo()
Operations::getInfo in core/lib/Drupal/Core/Render/Element/Operations.php
Returns the element properties for this element.
Operations::getInfo in core/lib/Drupal/Core/Render/Element/Operations.php
Returns the element properties for this element.
1 method overrides Dropbutton::getInfo()
Operations::getInfo in core/lib/Drupal/Core/Render/Element/Operations.php
Returns the element properties for this element.

File

core/lib/Drupal/Core/Render/Element/Dropbutton.php, line 51

Class

Dropbutton
Provides a render element for a set of links rendered as a drop-down button.

Namespace

Drupal\Core\Render\Element

Code

public function getInfo() {
    $class = static::class;
    return [
        '#pre_render' => [
            [
                $class,
                'preRenderDropbutton',
            ],
        ],
        '#theme' => 'links__dropbutton',
    ];
}

API Navigation

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