You are here

public function Fraction::getInfo in Fraction 2.x

Same name and namespace in other branches
  1. 8 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\Element

Code

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',
    ],
  ];
}