You are here

firebase.install in Firebase Push Notification (FCM) 8

Same filename and directory in other branches
  1. 7 firebase.install
  2. 3.0.x firebase.install

Update functions for Firebase.

File

firebase.install
View source
<?php

/**
 * @file
 * Update functions for Firebase.
 *
 * @ingroup firebase
 */

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

Functions

Namesort descending Description
firebase_update_8200 Update configuration.