You are here

protected function WebformOptionsCustom::getElementSelectorInputsOptions in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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\WebformElement

Code

protected function getElementSelectorInputsOptions(array $element) {
  $this
    ->setOptions($element);
  $title = $this
    ->getAdminLabel($element);
  return [
    'select' => $title . ' [' . $this
      ->t('Select') . ']',
  ];
}