You are here

protected function PasswordConfirm::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/PasswordConfirm.php, line 31

Class

PasswordConfirm
Provides a 'password_confirm' element.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

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