public function TranslationWrapper::__sleep in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Core/StringTranslation/TranslationWrapper.php \Drupal\Core\StringTranslation\TranslationWrapper::__sleep()
Magic __sleep() method to avoid serializing the string translator.
File
- lib/
Drupal/ Core/ StringTranslation/ TranslationWrapper.php, line 114 - Contains \Drupal\Core\StringTranslation\TranslationWrapper.
Class
- TranslationWrapper
- Provides a class to wrap a translatable string.
Namespace
Drupal\Core\StringTranslationCode
public function __sleep() {
return array(
'string',
'arguments',
'options',
);
}