public function FirebaseServiceBase::__sleep in Firebase Push Notification (FCM) 8
Same name and namespace in other branches
- 3.0.x src/Service/FirebaseServiceBase.php \Drupal\firebase\Service\FirebaseServiceBase::__sleep()
File
- src/
Service/ FirebaseServiceBase.php, line 159
Class
- FirebaseServiceBase
- Provides a base class for service, working with FCM.
Namespace
Drupal\firebase\ServiceCode
public function __sleep() {
$vars = $this
->sleep();
// Do not serialize static cache.
unset($vars['key'], $vars['endpoint'], $vars['body']);
return $vars;
}