public function WebformRoles::getInfo in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Element/WebformRoles.php \Drupal\webform\Element\WebformRoles::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 Checkboxes::getInfo
File
- src/
Element/ WebformRoles.php, line 18
Class
- WebformRoles
- Provides a webform roles (checkboxes) element.
Namespace
Drupal\webform\ElementCode
public function getInfo() {
$info = parent::getInfo();
$class = get_class($this);
$info['#element_validate'] = [
[
$class,
'validateWebformRoles',
],
];
$info['#include_anonymous'] = TRUE;
return $info;
}