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
BrokenConstructor.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
11
class
BrokenConstructor
extends
\Magento\Framework\View\Element\AbstractBlock
12
{
16
public
function
__construct
()
17
{
18
throw
new
LocalizedException
(
new
Phrase
(
'Construction problem.'
));
19
}
20
26
public
function
toHtml
()
27
{
28
return
'<p>Rendered with construction problem.</p>'
;
29
}
30
}
Magento\Framework\Exception\LocalizedException
Definition:
LocalizedException.php:17
Magento\Framework\View\Fixture\Block\BrokenConstructor\__construct
__construct()
Definition:
BrokenConstructor.php:16
Magento\Framework\View\Element\AbstractBlock
Definition:
AbstractBlock.php:25
Magento\Framework\View\Fixture\Block
Definition:
BrokenAction.php:6
Magento\Framework\View\Fixture\Block\BrokenConstructor\toHtml
toHtml()
Definition:
BrokenConstructor.php:26
Magento\Framework\Phrase
Definition:
Phrase.php:17
Magento\Framework\Phrase
Magento\Framework\View\Fixture\Block\BrokenConstructor
Definition:
BrokenConstructor.php:11