You are here

protected function EntityAccess::getAllWorkspaces in Workspace 8

Returns a list of all workspace entities in the system.

Return value

\Drupal\multiversion\Entity\WorkspaceInterface[]

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

1 call to EntityAccess::getAllWorkspaces()
EntityAccess::workspacePermissions in src/EntityAccess.php
Returns an array of workspace-specific permissions.

File

src/EntityAccess.php, line 197

Class

EntityAccess
Service wrapper for hooks relating to entity access control.

Namespace

Drupal\workspace

Code

protected function getAllWorkspaces() {
  return $this->entityTypeManager
    ->getStorage('workspace')
    ->loadMultiple();
}