You are here

protected function DomainPathAccessControlHandler::checkCreateAccess in Domain Path 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/DomainPathAccessControlHandler.php, line 43

Class

DomainPathAccessControlHandler
Access controller for the domain paths.

Namespace

Drupal\domain_path

Code

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