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
BrokenAction.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
BrokenAction
extends
\Magento\Framework\View\Element\AbstractBlock
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
}
Magento\Framework\View\Fixture\Block\BrokenAction
Definition:
BrokenAction.php:12
Magento\Framework\Exception\LocalizedException
Definition:
LocalizedException.php:17
Magento\Framework\View\Fixture\Block\BrokenAction\setLayout
setLayout(LayoutInterface $layout)
Definition:
BrokenAction.php:19
Magento\Framework\View\Element\AbstractBlock
Definition:
AbstractBlock.php:25
Magento\Framework\View\Fixture\Block\BrokenAction\toHtml
toHtml()
Definition:
BrokenAction.php:40
Magento\Framework\View\Fixture\Block
Definition:
BrokenAction.php:6
Magento\Framework\View\LayoutInterface
Definition:
LayoutInterface.php:13
Magento\Framework\Phrase
Definition:
Phrase.php:17
Magento\Framework\Phrase
Magento\Framework\View\Fixture\Block\BrokenAction\initAction
initAction($action)
Definition:
BrokenAction.php:30