You are here

public function DateRangeDurationWidget::setDurationService in Datetime Extras 8

Sets the duration service.

File

src/Plugin/Field/FieldWidget/DateRangeDurationWidget.php, line 44

Class

DateRangeDurationWidget
Plugin implementation of the 'daterange_duration' widget.

Namespace

Drupal\datetime_extras\Plugin\Field\FieldWidget

Code

public function setDurationService(DurationServiceInterface $duration_service) {
  $this->durationService = $duration_service;
}