You are here

rh_user.post_update.php in Rabbit Hole 8

Same filename and directory in other branches
  1. 2.x modules/rh_user/rh_user.post_update.php

Post update functions for "Rabbit Hole users" module.

File

modules/rh_user/rh_user.post_update.php
View source
<?php

/**
 * @file
 * Post update functions for "Rabbit Hole users" module.
 */

/**
 * Add entity_type_id key to Rabbit hole user settings.
 */
function rh_user_post_update_resave_user_settings() {

  /** @var \Drupal\rabbit_hole\BehaviorSettingsManagerInterface $settings_manager */
  $settings_manager = \Drupal::service('rabbit_hole.behavior_settings_manager');
  $settings_manager
    ->saveBehaviorSettings([], 'user');
}

Functions

Namesort descending Description
rh_user_post_update_resave_user_settings Add entity_type_id key to Rabbit hole user settings.