You are here

public static function SingleDateTime::settings in Single DateTimePicker 8

Return default settings. Pass in values to override defaults.

Parameters

array $values: Some Desc.

Return value

array Some Desc.

File

src/Element/SingleDateTime.php, line 170

Class

SingleDateTime
Provides a SingleDateTime form element.

Namespace

Drupal\single_datetime\Element

Code

public static function settings(array $values = []) {
  $settings = [
    'lang' => 'en',
  ];
  return array_merge($settings, $values);
}