You are here

function workspace_entity_create_access in Workspace 8.2

Same name and namespace in other branches
  1. 8 workspace.module \workspace_entity_create_access()

Implements hook_entity_create_access().

See also

\Drupal\workspace\EntityAccess

File

./workspace.module, line 106
Provides full-site preview functionality for content staging.

Code

function workspace_entity_create_access(AccountInterface $account, array $context, $entity_bundle) {
  return \Drupal::service('class_resolver')
    ->getInstanceFromDefinition(EntityAccess::class)
    ->entityCreateAccess($account, $context, $entity_bundle);
}