You are here

public function TimeElement::getInfo in Field Time 1.0.x

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/TimeElement.php, line 29

Class

TimeElement
Provides a time field form element.

Namespace

Drupal\field_time\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#show_seconds' => FALSE,
    '#input' => TRUE,
    '#process' => [
      [
        $class,
        'processAjaxForm',
      ],
    ],
    '#pre_render' => [
      [
        $class,
        'preRenderTime',
      ],
    ],
    '#theme' => 'input__time',
    '#theme_wrappers' => [
      'form_element',
    ],
  ];
}