function Datelist::getInfo
Same name in other branches
- 9 core/lib/Drupal/Core/Datetime/Element/Datelist.php \Drupal\Core\Datetime\Element\Datelist::getInfo()
- 8.9.x core/lib/Drupal/Core/Datetime/Element/Datelist.php \Drupal\Core\Datetime\Element\Datelist::getInfo()
- 10 core/lib/Drupal/Core/Datetime/Element/Datelist.php \Drupal\Core\Datetime\Element\Datelist::getInfo()
Overrides ElementInterface::getInfo
File
-
core/
lib/ Drupal/ Core/ Datetime/ Element/ Datelist.php, line 25
Class
- Datelist
- Provides a datelist element.
Namespace
Drupal\Core\Datetime\ElementCode
public function getInfo() {
$class = static::class;
return [
'#input' => TRUE,
'#element_validate' => [
[
$class,
'validateDatelist',
],
],
'#process' => [
[
$class,
'processDatelist',
],
],
'#theme' => 'datetime_form',
'#theme_wrappers' => [
'datetime_wrapper',
],
'#date_part_order' => [
'year',
'month',
'day',
'hour',
'minute',
],
'#date_year_range' => '1900:2050',
'#date_increment' => 1,
'#date_date_callbacks' => [],
'#date_timezone' => date_default_timezone_get(),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.