Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TranslatableMarkup.php

function TranslatableMarkup::__sleep

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

2 calls to TranslatableMarkup::__sleep()
PluralTranslatableMarkup::__sleep in core/lib/Drupal/Core/StringTranslation/PluralTranslatableMarkup.php
Magic __sleep() method to avoid serializing the string translator.
PluralTranslatableMarkup::__sleep in core/lib/Drupal/Core/StringTranslation/PluralTranslatableMarkup.php
Magic __sleep() method to avoid serializing the string translator.
1 method overrides TranslatableMarkup::__sleep()
PluralTranslatableMarkup::__sleep in core/lib/Drupal/Core/StringTranslation/PluralTranslatableMarkup.php
Magic __sleep() method to avoid serializing the string translator.

File

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

Class

TranslatableMarkup
Provides translatable markup class.

Namespace

Drupal\Core\StringTranslation

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal