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

1
2
3
public function __sleep() {
  return array('string', 'arguments', 'options');
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.