public function Workspace::isDefaultWorkspace in Multiversion 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
File
- src/
Entity/ Workspace.php, line 250
Class
- Workspace
- The workspace entity class.
Namespace
Drupal\multiversion\EntityCode
public function isDefaultWorkspace() {
return $this
->id() == \Drupal::getContainer()
->getParameter('workspace.default');
}