bundle/Controller/LayoutsController.php
public function showLocationLayouts($locationId)
    {
        $repository = $this->getRepository();

        $location = $repository->getLocationService()->loadLocation($locationId);
        $content = $repository->getContentService()->loadContent($location->contentInfo->id);

        $request = $this->createRequest($content, $location);

        return $this->render(
            '@NetgenAdminUI/layouts/location_layouts.html.twig',
            array(
                'rules' => $this->layoutResolver->resolveRules($request, array('ez_content_type')),
                'related_layouts' => $this->relatedLayoutsLoader->loadRelatedLayouts($location),
                'location' => $location,
            )
        );
    }
public function showLocationLayouts($locationId)
    {
        $repository = $this->getRepository();

        $location = $repository->getLocationService()->loadLocation($locationId);
        $content = $repository->getContentService()->loadContent($location->contentInfo->id);

        $request = $this->createRequest($content, $location);

        return $this->render(
            '@NetgenAdminUI/layouts/location_layouts.html.twig',
            array(
                'rules' => $this->layoutResolver->resolveRules($request, array('ez_content_type')),
                'related_layouts' => $this->relatedLayoutsLoader->loadRelatedLayouts($location),
                'location' => $location,
            )
        );
    }
Renders a template that shows all layouts applied to provided location.

@param int|string $locationId

@return \Symfony\Component\HttpFoundation\Response