You are here

public function WebformExcludedBase::getInfo in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Element/WebformExcludedBase.php \Drupal\webform\Element\WebformExcludedBase::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

1 call to WebformExcludedBase::getInfo()
WebformExcludedElements::getInfo in src/Element/WebformExcludedElements.php
Returns the element properties for this element.
1 method overrides WebformExcludedBase::getInfo()
WebformExcludedElements::getInfo in src/Element/WebformExcludedElements.php
Returns the element properties for this element.

File

src/Element/WebformExcludedBase.php, line 21

Class

WebformExcludedBase
Provides a base webform element for webform excluded elements and columns.

Namespace

Drupal\webform\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#input' => TRUE,
    '#process' => [
      [
        $class,
        'processWebformExcluded',
      ],
    ],
    '#webform_id' => NULL,
    '#theme_wrappers' => [
      'form_element',
    ],
    '#default_value' => [],
  ];
}