function DrupalDateTime::__sleep

Same name in other branches
  1. 10 core/lib/Drupal/Core/Datetime/DrupalDateTime.php \Drupal\Core\Datetime\DrupalDateTime::__sleep()

File

core/lib/Drupal/Core/Datetime/DrupalDateTime.php, line 175

Class

DrupalDateTime
Extends DateTimePlus().

Namespace

Drupal\Core\Datetime

Code

public function __sleep() : array {
    return array_diff($this->defaultSleep(), [
        'formatTranslationCache',
    ]);
}

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