You are here

public function HorizontalTabs::getInfo in Field Group 8.3

Same name and namespace in other branches
  1. 8 src/Element/HorizontalTabs.php \Drupal\field_group\Element\HorizontalTabs::getInfo()

Returns the element properties for this element.

Return value

array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.

Overrides ElementInterface::getInfo

File

src/Element/HorizontalTabs.php, line 22

Class

HorizontalTabs
Provides a render element for horizontal tabs.

Namespace

Drupal\field_group\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#default_tab' => '',
    '#process' => [
      [
        $class,
        'processHorizontalTabs',
      ],
      [
        $class,
        'processGroup',
      ],
    ],
    '#pre_render' => [
      [
        $class,
        'preRenderGroup',
      ],
    ],
    '#theme_wrappers' => [
      'horizontal_tabs',
    ],
  ];
}