You are here

cas_attributes.post_update.php in CAS Attributes 8

Same filename and directory in other branches
  1. 2.x cas_attributes.post_update.php

Post update functions for CAS Attributes module.

File

cas_attributes.post_update.php
View source
<?php

/**
 * @file
 * Post update functions for CAS Attributes module.
 */

/**
 * Don't serialize the mappings.
 */
function cas_attributes_post_update_unserialize_mappings() {
  $config = \Drupal::configFactory()
    ->getEditable('cas_attributes.settings');
  $config
    ->set('field.mappings', array_filter(unserialize($config
    ->get('field.mappings'))))
    ->set('role.mappings', (array) unserialize($config
    ->get('role.mappings')))
    ->save(TRUE);
}

Functions

Namesort descending Description
cas_attributes_post_update_unserialize_mappings Don't serialize the mappings.