You are here

public function FirebaseServiceBase::__sleep in Firebase Push Notification (FCM) 8

Same name and namespace in other branches
  1. 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\Service

Code

public function __sleep() {
  $vars = $this
    ->sleep();

  // Do not serialize static cache.
  unset($vars['key'], $vars['endpoint'], $vars['body']);
  return $vars;
}