You are here

function firebase_update_8200 in Firebase Push Notification (FCM) 8

Same name and namespace in other branches
  1. 3.0.x firebase.install \firebase_update_8200()

Update configuration.

File

./firebase.install, line 13
Update functions for Firebase.

Code

function firebase_update_8200() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('firebase.settings');
  $config
    ->clear('endpoint');
  $config
    ->set('sender_id', '');
  $config
    ->save();
}