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
1 call to Workspace::hasParent()
- Workspace::postSave in core/
modules/ workspaces/ src/ Entity/ Workspace.php - Acts on a saved entity before the insert or update hook is invoked.
File
-
core/
modules/ workspaces/ src/ Entity/ Workspace.php, line 175
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.