public function DateTimeDefaultWidget::defaultValueFunction

Return the callback used to set a date default value.

Return value

string The name of the callback to use when setting a default date value.

1 call to DateTimeDefaultWidget::defaultValueFunction()

File

drupal/core/modules/datetime/lib/Drupal/datetime/Plugin/field/widget/DatetimeDefaultWidget.php, line 47
Contains \Drupal\datetime\Plugin\field\widget\DateTimeDefaultWidget.

Class

DateTimeDefaultWidget
Plugin implementation of the 'datetime_default' widget.

Namespace

Drupal\datetime\Plugin\field\widget

Code

public function defaultValueFunction() {
  return 'datetime_default_value';
}