public function Workspace::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.
Overrides WorkspaceInterface::isDefaultWorkspace
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
File
- core/
modules/ workspaces/ src/ Entity/ Workspace.php, line 136
Class
- Workspace
- The workspace entity class.
Namespace
Drupal\workspaces\EntityCode
public function isDefaultWorkspace() {
@trigger_error('WorkspaceInterface::isDefaultWorkspace() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \\Drupal\\workspaces\\WorkspaceManager::hasActiveWorkspace() instead. See https://www.drupal.org/node/3071527', E_USER_DEPRECATED);
return FALSE;
}