You are here

function opigno_notification_update_9001 in Opigno notifications 3.x

Update the notifications view config.

File

./opigno_notification.install, line 13
Opigno notification app install/update functionality.

Code

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));
}