function WorkspacesHooks::entityCreateAccess

Implements hook_entity_create_access().

See also

\Drupal\workspaces\EntityAccess

File

core/modules/workspaces/src/Hook/WorkspacesHooks.php, line 197

Class

WorkspacesHooks
Hook implementations for workspaces.

Namespace

Drupal\workspaces\Hook

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.