Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
integration
testsuite
Magento
Framework
View
Fixture
Block
BrokenLayout.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\View\Fixture\Block
;
7
8
use
Magento\Framework\Exception\LocalizedException
;
9
use
Magento\Framework\Phrase
;
10
use
Magento\Framework\View\LayoutInterface
;
11
12
class
BrokenLayout
extends
\Magento\Framework\View\Element\AbstractBlock
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
}
Magento\Framework\Exception\LocalizedException
Definition:
LocalizedException.php:17
Magento\Framework\View\Fixture\Block\BrokenLayout\setLayout
setLayout(LayoutInterface $layout)
Definition:
BrokenLayout.php:20
Magento\Framework\View\Element\AbstractBlock
Definition:
AbstractBlock.php:25
Magento\Framework\View\Fixture\Block
Definition:
BrokenAction.php:6
Magento\Framework\View\Fixture\Block\BrokenLayout\toHtml
toHtml()
Definition:
BrokenLayout.php:30
Magento\Framework\View\LayoutInterface
Definition:
LayoutInterface.php:13
Magento\Framework\View\Fixture\Block\BrokenLayout
Definition:
BrokenLayout.php:12
Magento\Framework\Phrase
Definition:
Phrase.php:17
Magento\Framework\Phrase