fromEntityWrittenEvent example



    /** * @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']);
        }
    }
}
Home | Imprint | This part of the site doesn't use cookies.