public function YamlFormEmailMultiple::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/ YamlFormEmailMultiple.php, line 19
Class
- YamlFormEmailMultiple
- Provides a form element for entering multiple comma delimited email addresses.
Namespace
Drupal\yamlform\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#input' => TRUE,
'#description' => $this
->t('Multiple email addresses may be separated by commas.'),
'#size' => 60,
'#allow_tokens' => FALSE,
'#process' => [
[
$class,
'processAutocomplete',
],
[
$class,
'processAjaxForm',
],
[
$class,
'processPattern',
],
],
'#element_validate' => [
[
$class,
'validateYamlFormEmailMultiple',
],
],
'#pre_render' => [
[
$class,
'preRenderYamlFormEmailMultiple',
],
],
'#theme' => 'input__email_multiple',
'#theme_wrappers' => [
'form_element',
],
];
}