Change record status: 
Project: 
Introduced in branch: 
8.0.x
Introduced in version: 
8.0.0-BETA10
Description: 

In HEAD, this convenience method still returns a boolean. But that means the necessary access cacheability metadata is missing. By requiring an AccessResultInterface object to be returned, that problem is solved.

BEFORE

  protected function blockAccess(AccountInterface $account) {
    return $account->hasPermission('a permission');
  }

AFTER

  protected function blockAccess(AccountInterface $account) {
    return AccessResult::allowedIfHasPermission($account, 'a permission');
  }
Impacts: 
Module developers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done