You are here

opigno_notification.install in Opigno notifications 3.x

Same filename and directory in other branches
  1. 8 opigno_notification.install

Opigno notification app install/update functionality.

File

opigno_notification.install
View source
<?php

/**
 * @file
 * Opigno notification app install/update functionality.
 */
use Drupal\Core\Config\FileStorage;

/**
 * Update the notifications view config.
 */
function opigno_notification_update_9001() {
  $path = drupal_get_path('module', 'opigno_notification') . '/config/optional/';
  $config = 'views.view.opigno_notifications';
  $source = new FileStorage($path);
  \Drupal::service('config.storage')
    ->write($config, $source
    ->read($config));
}

Functions

Namesort descending Description
opigno_notification_update_9001 Update the notifications view config.