Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #697 from Gizra/document-interface-check
Browse files Browse the repository at this point in the history
Document why we are doing an interface check
  • Loading branch information
pfrenssen authored Aug 15, 2020
2 parents b8fe345 + 93b7eb8 commit bbd8837
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Event/AccessEventBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ public function getUser(): AccountInterface {
public function getAccessResult(): AccessResultInterface {
$access = $this->access;

// Enrich the access result object with our cacheability metadata in case it
// supports it.
if ($access instanceof RefinableCacheableDependencyInterface) {
$access->addCacheableDependency($this);
}
Expand Down

0 comments on commit bbd8837

Please sign in to comment.