protected function YamlFormEmailConfirm::getElementSelectorInputsOptions in YAML Form 8
Get an element's (sub)inputs selectors as options.
Parameters
array $element: An element.
Return value
array An array of element (sub)input selectors.
Overrides YamlFormElementBase::getElementSelectorInputsOptions
File
- src/
Plugin/ YamlFormElement/ YamlFormEmailConfirm.php, line 59
Class
- YamlFormEmailConfirm
- Provides a 'email_confirm' element.
Namespace
Drupal\yamlform\Plugin\YamlFormElementCode
protected function getElementSelectorInputsOptions(array $element) {
return [
'mail_1' => $this
->getAdminLabel($element) . '1 [' . $this
->t('Email') . ']',
'mail_2' => $this
->getAdminLabel($element) . ' 2 [' . $this
->t('Email') . ']',
];
}