You are here

public function TranslationWrapper::__sleep in Service Container 7.2

Same name and namespace in other branches
  1. 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\StringTranslation

Code

public function __sleep() {
  return array(
    'string',
    'arguments',
    'options',
  );
}