public function PersianDateTime::getInfo in Persian Date for Drupal 8 8
Same name and namespace in other branches
- 8.4 src/Element/PersianDateTime.php \Drupal\persian_date\Element\PersianDateTime::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 Datetime::getInfo
File
- src/
Element/ PersianDateTime.php, line 25
Class
- PersianDateTime
- Class PersianDateTime @package Drupal\persian_date\Element
Namespace
Drupal\persian_date\ElementCode
public function getInfo() {
$info = parent::getInfo();
$info['#date_date_element'] = 'text';
return $info;
}