You are here

protected function WebformHeight::getElementSelectorInputsOptions in Webform 6.x

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

Class

WebformHeight
Provides a 'height' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function getElementSelectorInputsOptions(array $element) {
  $t_args = [
    '@title' => $this
      ->getAdminLabel($element),
  ];
  return [
    'feet' => (string) $this
      ->t('@title: Feet', $t_args),
    'inches' => (string) $this
      ->t('@title: Inches', $t_args),
  ];
}