public function UnlimitedNumber::getInfo in Unlimited Number Field 8
Same name and namespace in other branches
- 2.x src/Element/UnlimitedNumber.php \Drupal\unlimited_number\Element\UnlimitedNumber::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
- src/
Element/ UnlimitedNumber.php, line 32
Class
- UnlimitedNumber
- Provides an unlimited or number radios element
Namespace
Drupal\unlimited_number\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#input' => TRUE,
'#process' => [
[
$class,
'processUnlimitedNumber',
],
],
'#element_validate' => [
[
$class,
'validateUnlimitedNumber',
],
],
];
}