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\EntityFieldCode
public function setAccessResult(AccessResultInterface $accessResult) {
$this->accessResult = $accessResult;
}