workspace_update_test.post_update.php
Same filename and directory in other branches
- 9 core/modules/workspaces/tests/modules/workspace_update_test/workspace_update_test.post_update.php
- 10 core/modules/workspaces/tests/modules/workspace_update_test/workspace_update_test.post_update.php
- 11.x core/modules/workspaces/tests/modules/workspace_update_test/workspace_update_test.post_update.php
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
Title | Deprecated | Summary |
---|---|---|
workspace_update_test_post_update_check_active_workspace | Checks the active workspace during database updates. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.