public function EntityFieldAccessEvent::setAccessResult in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x 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;
}