W3cubDocs

/Drupal 8

public function Datelist::getInfo

public Datelist::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

core/lib/Drupal/Core/Datetime/Element/Datelist.php, line 20

Class

Datelist
Provides a datelist element.

Namespace

Drupal\Core\Datetime\Element

Code

public function getInfo() {
  $class = get_class($this);
  return array(
    '#input' => TRUE,
    '#element_validate' => array(
      array($class, 'validateDatelist'),
    ),
    '#process' => array(
      array($class, 'processDatelist'),
    ),
    '#theme' => 'datetime_form',
    '#theme_wrappers' => array('datetime_wrapper'),
    '#date_part_order' => array('year', 'month', 'day', 'hour', 'minute'),
    '#date_year_range' => '1900:2050',
    '#date_increment' => 1,
    '#date_date_callbacks' => array(),
    '#date_timezone' => '',
  );
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Datetime!Element!Datelist.php/function/Datelist::getInfo/8.1.x