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
Communication
Config.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Communication
;
7
8
use
Magento\Framework\Exception\LocalizedException
;
9
use
Magento\Framework\Communication\Config\Data
as
ConfigData
;
10
use
Magento\Framework\Phrase
;
11
15
class
Config
implements
ConfigInterface
16
{
20
protected
$data
;
21
27
public
function
__construct
(
ConfigData
$configData
)
28
{
29
$this->data =
$configData
;
30
}
31
35
public
function
getTopic
($topicName)
36
{
37
$data
= $this->data->get(self::TOPICS .
'/'
. $topicName);
38
if
(
$data
===
null
) {
39
throw
new
LocalizedException
(
40
new
Phrase
(
'Topic "%topic" is not configured.'
, [
'topic'
=> $topicName])
41
);
42
}
43
return
$data
;
44
}
45
49
public
function
getTopicHandlers
($topicName)
50
{
51
$topicData = $this->
getTopic
($topicName);
52
return
$topicData[
self::TOPIC_HANDLERS
];
53
}
54
58
public
function
getTopics
()
59
{
60
return
$this->data->get(self::TOPICS) ?: [];
61
}
62
}
Magento\Framework\Exception\LocalizedException
Definition:
LocalizedException.php:17
Magento\Framework\Communication\ConfigInterface\TOPIC_HANDLERS
const TOPIC_HANDLERS
Definition:
ConfigInterface.php:21
Magento\Framework\Communication\Config\$data
$data
Definition:
Config.php:20
Magento\Framework\Communication\Config\getTopic
getTopic($topicName)
Definition:
Config.php:35
Magento\Framework\Communication\Config\getTopics
getTopics()
Definition:
Config.php:58
Magento\Framework\Communication\ConfigInterface
Definition:
ConfigInterface.php:16
Magento\Framework\Communication\Config\__construct
__construct(ConfigData $configData)
Definition:
Config.php:27
$configData
$configData
Definition:
payment_configuration.php:26
Magento\Framework\Communication\Config
Definition:
Config.php:15
Magento\Framework\Phrase
Definition:
Phrase.php:17
Magento\Framework\Phrase
Magento\Framework\Communication
Magento\Framework\Communication\Config\getTopicHandlers
getTopicHandlers($topicName)
Definition:
Config.php:49
Magento\Framework\Config\Data
Definition:
ConfigData.php:7
Magento\Framework\Communication\Config\Data
Definition:
Data.php:13