function FormattedDateDiff::getString

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Datetime/FormattedDateDiff.php \Drupal\Core\Datetime\FormattedDateDiff::getString()
  2. 10 core/lib/Drupal/Core/Datetime/FormattedDateDiff.php \Drupal\Core\Datetime\FormattedDateDiff::getString()
  3. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.