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
module-catalog
Model
ProductLink
Converter
ConverterPool.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Catalog\Model\ProductLink\Converter
;
8
9
class
ConverterPool
10
{
14
protected
$converters
;
15
19
protected
$defaultConverterCode
=
'default'
;
20
24
public
function
__construct
(array
$converters
)
25
{
26
$this->converters =
$converters
;
27
}
28
35
public
function
getConverter
($linkType)
36
{
37
return
isset($this->converters[$linkType])
38
? $this->converters[$linkType]
39
: $this->converters[
$this->defaultConverterCode
];
40
}
41
}
Magento\Catalog\Model\ProductLink\Converter
Definition:
ConverterInterface.php:7
Magento\Catalog\Model\ProductLink\Converter\ConverterPool
Definition:
ConverterPool.php:9
Magento\Catalog\Model\ProductLink\Converter\ConverterPool\$defaultConverterCode
$defaultConverterCode
Definition:
ConverterPool.php:19
Magento\Catalog\Model\ProductLink\Converter\ConverterPool\__construct
__construct(array $converters)
Definition:
ConverterPool.php:24
Magento\Catalog\Model\ProductLink\Converter\ConverterPool\$converters
$converters
Definition:
ConverterPool.php:14
Magento\Catalog\Model\ProductLink\Converter\ConverterPool\getConverter
getConverter($linkType)
Definition:
ConverterPool.php:35