function log_log_create_access in Log entity 8
Implements hook_log_create_access().
File
- ./
log.module, line 128 - Contains log.module..
Code
function log_log_create_access(AccountInterface $account, array $context, $entity_bundle = NULL) {
return AccessResult::allowedIfHasPermission($account, 'create ' . $entity_bundle . ' log entities')
->cachePerPermissions();
}