You are here

function data_policy_update_8004 in Data Policy 8

Update the "Data Policy Agreements" view.

File

./data_policy.install, line 131
Install, update and uninstall functions for the data_policy module.

Code

function data_policy_update_8004() {
  $name = 'views.view.data_policy_agreements';
  $install_source = drupal_get_path('module', 'data_policy') . '/config/install';
  $source = new FileStorage($install_source);
  $config_storage = \Drupal::service('config.storage');
  $config_storage
    ->write($name, $source
    ->read($name));
}