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

Breadcrumb

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

function Dependency::__sleep

Prevents unnecessary serialization of constraint objects.

Return value

array The properties to serialize.

File

core/lib/Drupal/Core/Extension/Dependency.php, line 144

Class

Dependency
A value object representing dependency information.

Namespace

Drupal\Core\Extension

Code

public function __sleep() : array {
    return [
        'name',
        'project',
        'constraintString',
    ];
}

API Navigation

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