Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
BrokenLayout.php
Go to the documentation of this file.
1 <?php
7 
11 
13 {
20  public function setLayout(LayoutInterface $layout)
21  {
22  throw new LocalizedException(new Phrase('Prepare layout problem.'));
23  }
24 
30  public function toHtml()
31  {
32  return '<p>Rendered with layout problem.</p>';
33  }
34 }