function jsonapi_jsonapi_aggregator_feed_filter_access in JSON:API 8
Same name and namespace in other branches
- 8.2 jsonapi.module \jsonapi_jsonapi_aggregator_feed_filter_access()
Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'aggregator_feed'.
File
- ./
jsonapi.module, line 163 - Module implementation file.
Code
function jsonapi_jsonapi_aggregator_feed_filter_access(EntityTypeInterface $entity_type, AccountInterface $account) {
// @see \Drupal\aggregator\FeedAccessControlHandler::checkAccess()
return [
JSONAPI_FILTER_AMONG_ALL => AccessResult::allowedIfHasPermission($account, 'access news feeds'),
];
}