You are here

public function DateList::getDefaultProperties in YAML Form 8

Only a few elements don't inherit these default properties.

Overrides DateBase::getDefaultProperties

See also

\Drupal\yamlform\Plugin\YamlFormElement\Textarea

\Drupal\yamlform\Plugin\YamlFormElement\YamlFormLikert

\Drupal\yamlform\Plugin\YamlFormElement\YamlFormCompositeBase

\Drupal\yamlform\Plugin\YamlFormElement\ContainerBase

File

src/Plugin/YamlFormElement/DateList.php, line 23

Class

DateList
Provides a 'datelist' element.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

public function getDefaultProperties() {
  return parent::getDefaultProperties() + [
    // Date settings.
    'date_part_order' => [
      'year',
      'month',
      'day',
      'hour',
      'minute',
    ],
    'date_text_parts' => [
      'year',
    ],
    'date_year_range' => '1900:2050',
    'date_increment' => 1,
  ];
}