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