public function Workspace::hasParent in Drupal 8
Same name and namespace in other branches
- 9 core/modules/workspaces/src/Entity/Workspace.php \Drupal\workspaces\Entity\Workspace::hasParent()
- 10 core/modules/workspaces/src/Entity/Workspace.php \Drupal\workspaces\Entity\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 158
Class
- Workspace
- The workspace entity class.
Namespace
Drupal\workspaces\EntityCode
public function hasParent() {
return !$this
->get('parent')
->isEmpty();
}