You are here

function workspace_workspace_create_access in Workspace 8

Implements hook_ENTITY_TYPE_create_access().

File

./workspace.module, line 121

Code

function workspace_workspace_create_access(AccountInterface $account, array $context, $entity_bundle) {
  return \Drupal::service('workspace.entity_access')
    ->workspaceCreateAccess($account, $context, $entity_bundle);
}