wrapEntityWrittenEvent example

if ($event instanceof Hookable) {
            return [$event];
        }

        if ($event instanceof FlowEventAware) {
            return [
                HookableBusinessEvent::fromBusinessEvent($event$this->eventEncoder),
            ];
        }

        if ($event instanceof EntityWrittenContainerEvent) {
            return $this->wrapEntityWrittenEvent($event);
        }

        return [];
    }

    /** * @return Hookable[] */
    private function wrapEntityWrittenEvent(EntityWrittenContainerEvent $event): array
    {
        $hookables = [];
        
Home | Imprint | This part of the site doesn't use cookies.