public function Interval::getInfo in Interval Field 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/ Interval.php, line 18
Class
- Interval
- Provides a form element for date/time intervals.
Namespace
Drupal\interval\ElementCode
public function getInfo() {
return [
'#input' => TRUE,
'#process' => [
[
get_class($this),
'process',
],
],
'#theme' => 'interval',
'#theme_wrappers' => [
'form_element',
],
];
}