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
framework
View
Element
Message
InterpretationMediator.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\View\Element\Message
;
7
8
use
Magento\Framework\Message\MessageInterface
;
9
10
class
InterpretationMediator
implements
InterpretationStrategyInterface
11
{
15
private
$interpretationStrategy;
16
20
public
function
__construct
(
21
InterpretationStrategy
$interpretationStrategy
22
) {
23
$this->interpretationStrategy = $interpretationStrategy;
24
}
25
32
public
function
interpret
(
MessageInterface
$message
)
33
{
34
if
(
$message
->getIdentifier()) {
35
try
{
36
return
$this->interpretationStrategy->interpret(
$message
);
37
}
catch
(\LogicException $e) {
38
// pass
39
}
40
}
41
42
return
$message
->getText();
43
}
44
}
Magento\Framework\View\Element\Message
Definition:
InterpretationMediator.php:6
$message
$message
Definition:
notifications.php:7
Magento\Framework\Message\MessageInterface
Definition:
MessageInterface.php:14
Magento\Framework\View\Element\Message\InterpretationMediator
Definition:
InterpretationMediator.php:10
Magento\Framework\View\Element\Message\InterpretationStrategy
Definition:
InterpretationStrategy.php:11
Magento\Framework\View\Element\Message\InterpretationMediator\interpret
interpret(MessageInterface $message)
Definition:
InterpretationMediator.php:32
Magento\Framework\View\Element\Message\InterpretationStrategyInterface
Definition:
InterpretationStrategyInterface.php:14
Magento\Framework\View\Element\Message\InterpretationMediator\__construct
__construct(InterpretationStrategy $interpretationStrategy)
Definition:
InterpretationMediator.php:20