You are here

function multiversion_get_active_workspace_id in Multiversion 8

Callback for getting the active workspace ID.

1 call to multiversion_get_active_workspace_id()
multiversion_views_query_alter in ./multiversion.module
Implements hook_views_query_alter().

File

./multiversion.module, line 499

Code

function multiversion_get_active_workspace_id() {
  return \Drupal::service('multiversion.manager')
    ->getActiveWorkspaceId();
}