You are here

public function TemplateCollectionList::getInfo in Courier 2.x

Same name and namespace in other branches
  1. 8 src/Element/TemplateCollectionList.php \Drupal\courier\Element\TemplateCollectionList::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/TemplateCollectionList.php, line 23

Class

TemplateCollectionList
Provides a template collection list element.

Namespace

Drupal\courier\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#input' => TRUE,
    '#process' => [
      [
        $class,
        'processTemplateCollectionList',
      ],
    ],
    // Items can be any non-zero key. Forms will return this key for keys of
    // checkboxes in $form_element['checkboxes'].
    '#items' => [],
    '#checkboxes' => FALSE,
    '#attributes' => [],
    '#value' => NULL,
  ];
}