You are here

public function DateRangeDurationWidget::setGranularityService in Datetime Extras 8

Sets the granularity service.

File

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

Class

DateRangeDurationWidget
Plugin implementation of the 'daterange_duration' widget.

Namespace

Drupal\datetime_extras\Plugin\Field\FieldWidget

Code

public function setGranularityService(GranularityServiceInterface $granularity_service) {
  $this->granularityService = $granularity_service;
}