You are here

public function AccessEventBase::grantAccess in Organic groups 8

Declare that access is being granted.

Calling this method will cause access to be granted for the action that is being checked, unless another event listener denies access.

Return value

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

Overrides AccessEventInterface::grantAccess

File

src/Event/AccessEventBase.php, line 60

Class

AccessEventBase
Base class for OG access events.

Namespace

Drupal\og\Event

Code

public function grantAccess() : AccessResultInterface {
  $this->access = $this->access
    ->orIf(AccessResult::allowed());
  return $this->access;
}