You are here

public function Dependency::__sleep in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Extension/Dependency.php \Drupal\Core\Extension\Dependency::__sleep()

Prevents unnecessary serialization of constraint objects.

Return value

array The properties to seriailize.

File

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

Class

Dependency
A value object representing dependency information.

Namespace

Drupal\Core\Extension

Code

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