protected function HostAccessControlHandler::checkCreateAccess in http:BL 8
Separate from the checkAccess because the entity does not yet exist, it will be created during the 'add' process.
Overrides EntityAccessControlHandler::checkCreateAccess
File
- src/
HostAccessControlHandler.php, line 43
Class
- HostAccessControlHandler
- Access controller for the host entity.
Namespace
Drupal\httpblCode
protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) {
return AccessResult::allowedIfHasPermission($account, 'add host entity');
}