public function AccessEventBase::getAccessResult in Organic groups 8
Returns the current access result object.
Return value
\Drupal\Core\Access\AccessResultInterface The access result object.
Overrides AccessEventInterface::getAccessResult
File
- src/
Event/ AccessEventBase.php, line 98
Class
- AccessEventBase
- Base class for OG access events.
Namespace
Drupal\og\EventCode
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);
}
return $access;
}