opigno_notification.install in Opigno notifications 3.x
Same filename and directory in other branches
Opigno notification app install/update functionality.
File
opigno_notification.installView 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
Name | Description |
---|---|
opigno_notification_update_9001 | Update the notifications view config. |