You are here

public function AccessEventBase::mergeAccessResult in Organic groups 8

Merges the given access result with the existing access result.

Return value

\Drupal\Core\Access\AccessResultInterface The updated access result.

Overrides AccessEventInterface::mergeAccessResult

File

src/Event/AccessEventBase.php, line 76

Class

AccessEventBase
Base class for OG access events.

Namespace

Drupal\og\Event

Code

public function mergeAccessResult(AccessResultInterface $access_result) : AccessResultInterface {
  $this->access = $this->access
    ->orIf($access_result);
  return $this->access;
}