13 use Psr\Log\LoggerInterface;
73 return $this->
template->getDocumentElement();
84 json_encode($this->structure->generate($this->component), JSON_HEX_TAG)
86 $this->
template->append($layoutConfiguration);
99 if (
'noNamespaceSchemaLocation' ===
$name) {
104 $templateRootElement->removeAttributeNS(
'http://www.w3.org/2001/XMLSchema-instance',
'xsi');
105 $this->compiler->compile($templateRootElement, $this->component, $this->component);
107 $result = $this->compiler->postprocessing($this->template->__toString());
108 }
catch (\Exception $e) {
109 $this->logger->critical($e->getMessage());
123 return '<script type="text/x-magento-init"><![CDATA[' 124 .
'{"*": {"Magento_Ui/js/core/app": ' . str_replace([
'<![CDATA[',
']]>'],
'',
$content) .
'}}'
appendLayoutConfiguration()
__construct(Template $template, CompilerInterface $compiler, UiComponentInterface $component, Structure $structure, LoggerInterface $logger)
if(!isset($_GET['name'])) $name