You are here

protected function WebformEmailConfirm::getElementSelectorInputsOptions in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformElement/WebformEmailConfirm.php \Drupal\webform\Plugin\WebformElement\WebformEmailConfirm::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 WebformElementBase::getElementSelectorInputsOptions

File

src/Plugin/WebformElement/WebformEmailConfirm.php, line 111

Class

WebformEmailConfirm
Provides a 'email_confirm' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function getElementSelectorInputsOptions(array $element) {
  return [
    'mail_1' => $this
      ->getAdminLabel($element) . '1 [' . $this
      ->t('Email') . ']',
    'mail_2' => $this
      ->getAdminLabel($element) . ' 2 [' . $this
      ->t('Email') . ']',
  ];
}