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
Observer
CatalogCheckIsUsingStaticUrlsAllowedObserver.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Catalog\Observer
;
7
8
use
Magento\Framework\Event\ObserverInterface
;
9
10
class
CatalogCheckIsUsingStaticUrlsAllowedObserver
implements
ObserverInterface
11
{
17
protected
$catalogData
;
18
22
public
function
__construct
(\
Magento
\Catalog\Helper\Data
$catalogData
)
23
{
24
$this->catalogData =
$catalogData
;
25
}
26
33
public
function
execute
(\
Magento
\Framework\Event\
Observer
$observer
)
34
{
35
$storeId
=
$observer
->getEvent()->getData(
'store_id'
);
36
$result
=
$observer
->getEvent()->getData(
'result'
);
37
$result
->isAllowed = $this->catalogData->setStoreId(
$storeId
)->isUsingStaticUrlsAllowed();
38
}
39
}
Magento\Catalog\Observer\CatalogCheckIsUsingStaticUrlsAllowedObserver\$catalogData
$catalogData
Definition:
CatalogCheckIsUsingStaticUrlsAllowedObserver.php:17
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Catalog\Observer\CatalogCheckIsUsingStaticUrlsAllowedObserver\execute
execute(\Magento\Framework\Event\Observer $observer)
Definition:
CatalogCheckIsUsingStaticUrlsAllowedObserver.php:33
$storeId
$storeId
Definition:
customer_review_with_rating.php:14
Magento\Framework\Event\ObserverInterface
Definition:
ObserverInterface.php:16
Magento\Catalog\Observer
Definition:
SwitchPriceAttributeScopeOnConfigChangeTest.php:6
$observer
$observer
Definition:
second_website_with_second_currency.php:38
Magento
Magento\Catalog\Observer\CatalogCheckIsUsingStaticUrlsAllowedObserver\__construct
__construct(\Magento\Catalog\Helper\Data $catalogData)
Definition:
CatalogCheckIsUsingStaticUrlsAllowedObserver.php:22
Magento\Catalog\Observer\CatalogCheckIsUsingStaticUrlsAllowedObserver
Definition:
CatalogCheckIsUsingStaticUrlsAllowedObserver.php:10
Magento\Framework\Event\Observer
Definition:
Observer.php:14