public function MobileNumber::getInfo in Mobile Number 8
Same name and namespace in other branches
- 2.0.x src/Element/MobileNumber.php \Drupal\mobile_number\Element\MobileNumber::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/ MobileNumber.php, line 42
Class
- MobileNumber
- Provides a form input element for entering an email address.
Namespace
Drupal\mobile_number\ElementCode
public function getInfo() {
return [
'#input' => TRUE,
'#process' => [
[
$this,
'mobileNumberProcess',
],
],
'#element_validate' => [
[
$this,
'mobileNumberValidate',
],
],
'#mobile_number' => [],
];
}