You are here

public function FormattedDateDiff::getString in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Datetime/FormattedDateDiff.php \Drupal\Core\Datetime\FormattedDateDiff::getString()

Return value

string

File

core/lib/Drupal/Core/Datetime/FormattedDateDiff.php, line 49

Class

FormattedDateDiff
Contains a formatted time difference.

Namespace

Drupal\Core\Datetime

Code

public function getString() {
  return $this->string;
}