You are here

public function EntityAccessEvent::addAccessResult in Hook Event Dispatcher 8

Add the access result.

Parameters

\Drupal\Core\Access\AccessResultInterface $accessResult: The access result.

1 call to EntityAccessEvent::addAccessResult()
EntityAccessEvent::setAccessResult in src/Event/Entity/EntityAccessEvent.php
Set the access result.

File

src/Event/Entity/EntityAccessEvent.php, line 101

Class

EntityAccessEvent
Class EntityAccessEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Entity

Code

public function addAccessResult(AccessResultInterface $accessResult) {
  $this->accessResult = $this->accessResult
    ->orIf($accessResult);
}