public function Fraction::getInfo in Fraction 8
Same name and namespace in other branches
- 2.x src/Element/Fraction.php \Drupal\fraction\Element\Fraction::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/ Fraction.php, line 29
Class
- Fraction
- Provides a fraction form element.
Namespace
Drupal\fraction\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#input' => TRUE,
'#size' => 10,
'#element_validate' => [
[
$class,
'validateFraction',
],
],
'#process' => [
[
$class,
'processElement',
],
[
$class,
'processAjaxForm',
],
[
$class,
'processGroup',
],
],
'#pre_render' => [
[
$class,
'preRenderGroup',
],
],
'#theme_wrappers' => [
'container',
],
];
}