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

Breadcrumb

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

function AttributeMetadata::__sleep

Returns the names of the properties that should be serialized.

Return value

string[]

File

vendor/symfony/serializer/Mapping/AttributeMetadata.php, line 222

Class

AttributeMetadata
@author Kévin Dunglas <dunglas@gmail.com>

Namespace

Symfony\Component\Serializer\Mapping

Code

public function __sleep() : array {
    return [
        'name',
        'groups',
        'maxDepth',
        'serializedName',
        'serializedPath',
        'ignore',
        'normalizationContexts',
        'denormalizationContexts',
    ];
}
RSS feed
Powered by Drupal