/**
* @param list<HookableEventDoc> $eventsDoc
*/
private function collectEntityWrittenEvent(array &
$eventsDoc): void
{ $entityWrittenEvents =
$this->hookableEventCollector->
getEntityWrittenEventNamesWithPrivileges();
foreach ($entityWrittenEvents as $event =>
$permission) { $eventsDoc[] = HookableEventDoc::
fromEntityWrittenEvent($event,
$permission['privileges'
]);
} }}