public function Textfield::getInfo in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Render/Element/Textfield.php \Drupal\Core\Render\Element\Textfield::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
2 calls to Textfield::getInfo()
- EntityAutocomplete::getInfo in core/
lib/ Drupal/ Core/ Entity/ Element/ EntityAutocomplete.php - Returns the element properties for this element.
- PathElement::getInfo in core/
lib/ Drupal/ Core/ Render/ Element/ PathElement.php - Returns the element properties for this element.
3 methods override Textfield::getInfo()
- EntityAutocomplete::getInfo in core/
lib/ Drupal/ Core/ Entity/ Element/ EntityAutocomplete.php - Returns the element properties for this element.
- MachineName::getInfo in core/
lib/ Drupal/ Core/ Render/ Element/ MachineName.php - Returns the element properties for this element.
- PathElement::getInfo in core/
lib/ Drupal/ Core/ Render/ Element/ PathElement.php - Returns the element properties for this element.
File
- core/
lib/ Drupal/ Core/ Render/ Element/ Textfield.php, line 50
Class
- Textfield
- Provides a one-line text field form element.
Namespace
Drupal\Core\Render\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#input' => TRUE,
'#size' => 60,
'#maxlength' => 128,
'#autocomplete_route_name' => FALSE,
'#process' => [
[
$class,
'processAutocomplete',
],
[
$class,
'processAjaxForm',
],
[
$class,
'processPattern',
],
[
$class,
'processGroup',
],
],
'#pre_render' => [
[
$class,
'preRenderTextfield',
],
[
$class,
'preRenderGroup',
],
],
'#theme' => 'input__textfield',
'#theme_wrappers' => [
'form_element',
],
];
}