You are here

public function AccordionItem::getInfo in Field Group 8

Same name and namespace in other branches
  1. 8.3 src/Element/AccordionItem.php \Drupal\field_group\Element\AccordionItem::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/AccordionItem.php, line 17

Class

AccordionItem
Provides a render element for an accordion item.

Namespace

Drupal\field_group\Element

Code

public function getInfo() {
  return array(
    '#open' => TRUE,
    '#theme_wrappers' => array(
      'field_group_accordion_item',
    ),
  );
}