function FeedAccessControlHandler::checkCreateAccess

Same name and namespace in other branches
  1. 9 core/modules/aggregator/src/FeedAccessControlHandler.php \Drupal\aggregator\FeedAccessControlHandler::checkCreateAccess()

Overrides EntityAccessControlHandler::checkCreateAccess

File

core/modules/aggregator/src/FeedAccessControlHandler.php, line 33

Class

FeedAccessControlHandler
Defines an access control handler for the feed entity.

Namespace

Drupal\aggregator

Code

protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) {
    return AccessResult::allowedIfHasPermission($account, 'administer news feeds');
}

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