protected function FlipbookAccessControlHandler::checkCreateAccess in 3D Flipbook 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/
FlipbookAccessControlHandler.php, line 43
Class
- FlipbookAccessControlHandler
- Access controller for the comment entity.
Namespace
Drupal\flipbookCode
protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) {
return AccessResult::allowedIfHasPermission($account, 'add flipbook entity');
}