public function EntityFieldAccessEvent::setAccessResult in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/core_event_dispatcher/src/Event/Entity/EntityFieldAccessEvent.php \Drupal\core_event_dispatcher\Event\Entity\EntityFieldAccessEvent::setAccessResult()
Set the access result.
Parameters
\Drupal\Core\Access\AccessResultInterface $accessResult: The access result.
File
- modules/
core_event_dispatcher/ src/ Event/ Entity/ EntityFieldAccessEvent.php, line 138
Class
- EntityFieldAccessEvent
- Class EntityInsertEvent.
Namespace
Drupal\core_event_dispatcher\Event\EntityCode
public function setAccessResult(AccessResultInterface $accessResult) : void {
$this->accessResult = $accessResult;
}