You are here

public function WorkspaceInterface::isDefaultWorkspace in Drupal 8

Determines whether the workspace is the default one or not.

Return value

bool TRUE if this workspace is the default one (e.g 'Live'), FALSE otherwise.

Deprecated

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\workspaces\WorkspaceManager::hasActiveWorkspace() instead.

See also

https://www.drupal.org/node/3071527

1 method overrides WorkspaceInterface::isDefaultWorkspace()
Workspace::isDefaultWorkspace in core/modules/workspaces/src/Entity/Workspace.php
Determines whether the workspace is the default one or not.

File

core/modules/workspaces/src/WorkspaceInterface.php, line 40

Class

WorkspaceInterface
Defines an interface for the workspace entity type.

Namespace

Drupal\workspaces

Code

public function isDefaultWorkspace();