You are here

public function DatetimeWidget::defaultConfiguration in Typed Data API enhancements 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides FormWidgetBase::defaultConfiguration

File

src/Plugin/TypedDataFormWidget/DatetimeWidget.php, line 30

Class

DatetimeWidget
Plugin implementation of the 'datetime' widget.

Namespace

Drupal\typed_data\Plugin\TypedDataFormWidget

Code

public function defaultConfiguration() {
  return parent::defaultConfiguration() + [
    'label' => NULL,
    'description' => NULL,
  ];
}