function WorkspaceManager::shouldAlterOperations
Same name and namespace in other branches
- 8.9.x core/modules/workspaces/src/WorkspaceManager.php \Drupal\workspaces\WorkspaceManager::shouldAlterOperations()
- 10 core/modules/workspaces/src/WorkspaceManager.php \Drupal\workspaces\WorkspaceManager::shouldAlterOperations()
Determines whether runtime entity operations should be altered.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type to check.
Return value
bool TRUE if the entity operations or queries should be altered in the current request, FALSE otherwise.
Overrides WorkspaceManagerInterface::shouldAlterOperations
File
-
core/
modules/ workspaces/ src/ WorkspaceManager.php, line 299
Class
- WorkspaceManager
- Provides the workspace manager.
Namespace
Drupal\workspacesCode
public function shouldAlterOperations(EntityTypeInterface $entity_type) {
return $this->isEntityTypeSupported($entity_type) && $this->hasActiveWorkspace();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.