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.phpView 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
Name | Description |
---|---|
workspace_update_test_post_update_check_active_workspace | Checks the active workspace during database updates. |