You are here

public function ImageBrowser::getInfo in Image Entity Browser 8

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/ImageBrowser.php, line 30

Class

ImageBrowser
Provides a form element for choosing a color.

Namespace

Drupal\image_browser\Element

Code

public function getInfo() {
  $class = get_class($this);
  return array(
    '#input' => TRUE,
    '#process' => array(
      array(
        $class,
        'processAjaxForm',
      ),
    ),
    '#pre_render' => array(
      array(
        $class,
        'preRenderField',
      ),
    ),
    '#theme' => 'image_browser',
    '#theme_wrappers' => array(
      'form_element',
    ),
  );
}