TranslatableMarkup::__sleep

public TranslatableMarkup::__sleep()

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

File

core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php, line 212

Class

TranslatableMarkup
Provides translatable markup class.

Namespace

Drupal\Core\StringTranslation

Code

public function __sleep() {
  return array('string', 'arguments', 'options');
}
doc_Drupal
2016-10-29 09:49:05
Comments
Leave a Comment

Please login to continue.