You are here

workspace_update_test.post_update.php in Drupal 10

Post update functions for the Workspace Update Test module.

File

core/modules/workspaces/tests/modules/workspace_update_test/workspace_update_test.post_update.php
View source
<?php

/**
 * @file
 * Post update functions for the Workspace Update Test module.
 */

/**
 * Checks the active workspace during database updates.
 */
function workspace_update_test_post_update_check_active_workspace() {
  \Drupal::state()
    ->set('workspace_update_test.has_active_workspace', \Drupal::service('workspaces.manager')
    ->hasActiveWorkspace());
}

Functions

Namesort descending Description
workspace_update_test_post_update_check_active_workspace Checks the active workspace during database updates.