You are here

public function EntityFieldAccessEvent::setAccessResult in Hook Event Dispatcher 8

Set the access result.

Parameters

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

File

src/Event/EntityField/EntityFieldAccessEvent.php, line 136

Class

EntityFieldAccessEvent
Class EntityInsertEvent.

Namespace

Drupal\hook_event_dispatcher\Event\EntityField

Code

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