You are here

public function TranslatableMarkup::__sleep in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php \Drupal\Core\StringTranslation\TranslatableMarkup::__sleep()

Magic __sleep() method to avoid serializing the string translator.

File

core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php, line 217
Contains \Drupal\Core\StringTranslation\TranslatableMarkup.

Class

TranslatableMarkup
Provides translatable markup class.

Namespace

Drupal\Core\StringTranslation

Code

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