You are here

protected function PasswordConfirm::getElementSelectorInputsOptions in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformElement/PasswordConfirm.php \Drupal\webform\Plugin\WebformElement\PasswordConfirm::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/PasswordConfirm.php, line 66

Class

PasswordConfirm
Provides a 'password_confirm' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

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