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