function LocaleTranslation::__sleep
File
-
core/
modules/ locale/ src/ LocaleTranslation.php, line 169
Class
- LocaleTranslation
- String translator using the locale module.
Namespace
Drupal\localeCode
public function __sleep() : array {
// ::$translations is an array of LocaleLookup objects, which have the
// database service injected and therefore cannot be serialized safely.
return array_diff($this->traitSleep(), [
'translations',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.