FooterPageletLoadedEvent example

$tree = null;
        if ($footerId) {
            $navigationId = $request->get('navigationId', $footerId);

            $tree = $this->navigationLoader->load($navigationId$salesChannelContext$footerId);
        }

        $pagelet = new FooterPagelet($tree);

        $this->eventDispatcher->dispatch(
            new FooterPageletLoadedEvent($pagelet$salesChannelContext$request)
        );

        return $pagelet;
    }
}
Home | Imprint | This part of the site doesn't use cookies.