function Workspace::hasParent
Determines whether the workspace has a parent.
Return value
bool TRUE if the workspace has a parent, FALSE otherwise.
Overrides WorkspaceInterface::hasParent
File
-
core/
modules/ workspaces/ src/ Entity/ Workspace.php, line 152
Class
- Workspace
- The workspace entity class.
Namespace
Drupal\workspaces\EntityCode
public function hasParent() {
return !$this->get('parent')
->isEmpty();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.