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

Breadcrumb

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

function Constraint::__sleep

Optimizes the serialized value to minimize storage space.

@internal

File

vendor/symfony/validator/Constraint.php, line 293

Class

Constraint
Contains the properties of a constraint definition.

Namespace

Symfony\Component\Validator

Code

public function __sleep() : array {
    // Initialize "groups" option if it is not set
    $this->groups;
    return array_keys(get_object_vars($this));
}

API Navigation

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