本文整理汇总了PHP中Magento\Framework\View\LayoutInterface::generateXml方法的典型用法代码示例。如果您正苦于以下问题:PHP LayoutInterface::generateXml方法的具体用法?PHP LayoutInterface::generateXml怎么用?PHP LayoutInterface::generateXml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Framework\View\LayoutInterface
的用法示例。
在下文中一共展示了LayoutInterface::generateXml方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
protected function setUp()
{
$this->markTestIncomplete('MAGETWO-6406');
parent::setUp();
$this->_setFixtureTheme();
$this->_layout = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create('Magento\\Framework\\View\\LayoutInterface', ['area' => 'adminhtml']);
$this->_layout->getUpdate()->load('layout_test_grid_handle');
$this->_layout->generateXml();
$this->_layout->generateElements();
$this->_block = $this->_layout->getBlock('admin.test.grid.massaction');
}
示例2: setUp
protected function setUp()
{
$this->markTestIncomplete('MAGETWO-6406');
parent::setUp();
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
/** @var \Magento\Theme\Model\Theme\Registration $registration */
$registration = $objectManager->get('Magento\\Theme\\Model\\Theme\\Registration');
$registration->register();
$objectManager->get('Magento\\Framework\\View\\DesignInterface')->setDesignTheme('BackendTest/test_default');
$this->_layout = $objectManager->create('Magento\\Framework\\View\\LayoutInterface', ['area' => 'adminhtml']);
$this->_layout->getUpdate()->load('layout_test_grid_handle');
$this->_layout->generateXml();
$this->_layout->generateElements();
$this->_block = $this->_layout->getBlock('admin.test.grid.massaction');
$this->assertNotFalse($this->_block, 'Could not load the block for testing');
}
示例3: generateLayoutXml
/**
* Generate layout xml
*
* @return $this
*/
protected function generateLayoutXml()
{
Profiler::start('LAYOUT');
Profiler::start('layout_generate_xml');
/* generate xml from collected text updates */
$this->layout->generateXml();
Profiler::stop('layout_generate_xml');
Profiler::stop('LAYOUT');
return $this;
}
示例4: loadLayout
/**
* Load layout
*
* @return void
*/
public function loadLayout()
{
$this->layout->getUpdate()->load();
$this->layout->generateXml();
$this->layout->generateElements();
}