You are here

public function YamlFormOptions::getInfo in YAML Form 8

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/YamlFormOptions.php, line 24

Class

YamlFormOptions
Provides a form element to assist in creation of options.

Namespace

Drupal\yamlform\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#input' => TRUE,
    '#label' => t('option'),
    '#labels' => t('options'),
    '#empty_items' => 5,
    '#add_more' => 1,
    '#process' => [
      [
        $class,
        'processYamlFormOptions',
      ],
    ],
    '#theme_wrappers' => [
      'form_element',
    ],
  ];
}