protected function WebformOptionsCustom::getElementSelectorInputsOptions in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_options_custom/src/Plugin/WebformElement/WebformOptionsCustom.php \Drupal\webform_options_custom\Plugin\WebformElement\WebformOptionsCustom::getElementSelectorInputsOptions()
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 OptionsBase::getElementSelectorInputsOptions
File
- modules/
webform_options_custom/ src/ Plugin/ WebformElement/ WebformOptionsCustom.php, line 83
Class
- WebformOptionsCustom
- Provides a custom options element.
Namespace
Drupal\webform_options_custom\Plugin\WebformElementCode
protected function getElementSelectorInputsOptions(array $element) {
$this
->setOptions($element);
$title = $this
->getAdminLabel($element);
return [
'select' => $title . ' [' . $this
->t('Select') . ']',
];
}