You are here

public function EntityBrowserPagerElement::getInfo in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 src/Element/EntityBrowserPagerElement.php \Drupal\entity_browser\Element\EntityBrowserPagerElement::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/EntityBrowserPagerElement.php, line 41

Class

EntityBrowserPagerElement
Provides an Entity Browser pager form element.

Namespace

Drupal\entity_browser\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#process' => [
      [
        $class,
        'processEntityBrowserPager',
      ],
    ],
    '#theme_wrappers' => [
      'form_element',
    ],
    '#total_pages' => NULL,
    '#attached' => [
      'library' => [
        'entity_browser/pager',
      ],
    ],
  ];
}