function aggregator_jsonapi_aggregator_feed_filter_access

Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'aggregator_feed'.

File

core/modules/aggregator/aggregator.module, line 216

Code

function aggregator_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'),
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.