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

Since https://www.drupal.org/node/2337377, access results are value objects that may contain cacheability metadata.

The render system allows subtrees to be hidden using #access.

Until this change, #access could only be a boolean, which meant you had to manually map an AccessResultInterface object to a boolean and merge the cacheability metadata. This is too easy to forget. And too cumbersome. Therefore, #access now accepts AccessResultInterface objects and automatically merges its cacheability metadata.

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