You are here

public function UnsavedConfigurationFormTrait::getDateFormatter in Search API 8

Retrieves the date formatter.

Return value

\Drupal\Core\Datetime\DateFormatterInterface The date formatter.

File

src/Form/UnsavedConfigurationFormTrait.php, line 42

Class

UnsavedConfigurationFormTrait
Provides a helper methods for forms to correctly treat unsaved configuration.

Namespace

Drupal\search_api\Form

Code

public function getDateFormatter() {
  return $this->dateFormatter;
}