public function collectLayout(LayoutViewInterface $layoutView): void
    {
        $layout = $layoutView->getLayout();

        $this->data['layout'] = [
            'id' => $layout->getId(),
            'name' => $layout->getName(),
            'type' => $layout->getLayoutType()->getName(),
            'context' => $layoutView->getContext(),
            'template' => null,
            'template_path' => null,
        ];

        if ($layoutView->getTemplate() !== null) {
            $templateSource = $this->getTemplateSource($layoutView->getTemplate());

            $this->data['layout']['template'] = $templateSource->getName();
            $this->data['layout']['template_path'] = $templateSource->getPath();
        }
    }