function Dependency::__sleep
Same name in other branches
- 9 core/lib/Drupal/Core/Extension/Dependency.php \Drupal\Core\Extension\Dependency::__sleep()
- 10 core/lib/Drupal/Core/Extension/Dependency.php \Drupal\Core\Extension\Dependency::__sleep()
- 11.x 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\ExtensionCode
public function __sleep() {
return [
'name',
'project',
'constraintString',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.