function opigno_messaging_update_8001 in Opigno messaging 8
Reload private messages views config for removing caching.
File
- ./
opigno_messaging.install, line 50 - Install, update and uninstall functions for the Opigno Messaging module.
Code
function opigno_messaging_update_8001() {
$config_path = drupal_get_path('module', 'opigno_messaging') . '/config/optional';
$storage = new FileStorage($config_path);
$config_storage = \Drupal::service('config.storage');
$data = $storage
->read('views.view.private_message');
$config_storage
->write('views.view.private_message', $data);
}