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
FrontendStorageConfigurationPool.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Catalog\Model
;
8
9
use
Magento\Framework\Exception\LocalizedException
;
10
18
class
FrontendStorageConfigurationPool
19
{
23
private
$storageConfigurations;
24
29
public
function
__construct
(array $storageConfigurations = [])
30
{
31
$this->storageConfigurations = $storageConfigurations;
32
}
33
41
public
function
get
($namespace)
42
{
43
if
(isset($this->storageConfigurations[$namespace])) {
44
if
(!$this->storageConfigurations[$namespace] instanceof
FrontendStorageConfigurationInterface
) {
45
throw
new
LocalizedException
(
46
__
(sprintf(
"Invalid pool type with namespace: %s"
, $namespace))
47
);
48
}
49
}
else
{
50
return
false
;
51
}
52
53
return
$this->storageConfigurations[$namespace];
54
}
55
}
Magento\Framework\Exception\LocalizedException
Definition:
LocalizedException.php:17
Magento\Catalog\Model\FrontendStorageConfigurationPool\__construct
__construct(array $storageConfigurations=[])
Definition:
FrontendStorageConfigurationPool.php:29
__
__()
Definition:
__.php:13
Magento\Catalog\Model\FrontendStorageConfigurationPool
Definition:
FrontendStorageConfigurationPool.php:18
Magento\Catalog\Model\FrontendStorageConfigurationInterface
Definition:
FrontendStorageConfigurationInterface.php:14
Magento\Catalog\Model