You are here

public function WebformPermissions::getInfo in Webform 6.x

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

File

src/Element/WebformPermissions.php, line 19

Class

WebformPermissions
Provides a webform roles (select) element.

Namespace

Drupal\webform\Element

Code

public function getInfo() {
  $info = parent::getInfo();
  $class = get_class($this);
  $info['#element_validate'] = [
    [
      $class,
      'validateWebformPermissions',
    ],
  ];
  return $info;
}