public function YamlFormRoles::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 Checkboxes::getInfo
File
- src/
Element/ YamlFormRoles.php, line 18
Class
- YamlFormRoles
- Provides a roles entity reference form element.
Namespace
Drupal\yamlform\ElementCode
public function getInfo() {
$info = parent::getInfo();
$class = get_class($this);
$info['#element_validate'] = [
[
$class,
'validateYamlFormRoles',
],
];
$info['#include_anonymous'] = TRUE;
return $info;
}