You are here

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

Class

DateTime
Provides a 'datetime' element.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

protected function getElementSelectorInputsOptions(array $element) {
  $t_args = [
    '@title' => $this
      ->getAdminLabel($element),
  ];
  return [
    'date' => $this
      ->t('@title [Date]', $t_args),
    'time' => $this
      ->t('@title [Time]', $t_args),
  ];
}