You are here

protected function SignupAccessControlHandler::checkCreateAccess in SendinBlue 8

Same name and namespace in other branches
  1. 8.2 src/Access/SignupAccessControlHandler.php \Drupal\sendinblue\Access\SignupAccessControlHandler::checkCreateAccess()

Separate from the checkAccess because the entity does not yet exist, it will be created during the 'add' process.

Overrides EntityAccessControlHandler::checkCreateAccess

File

src/Access/SignupAccessControlHandler.php, line 43

Class

SignupAccessControlHandler
Access controller for the comment entity.

Namespace

Drupal\sendinblue\Access

Code

protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) {
  return AccessResult::allowedIfHasPermission($account, 'add form entity');
}