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
Event
Test
Unit
ManagerStub.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\Framework\Event\Test\Unit
;
11
12
class
ManagerStub
implements
\Magento\Framework\Event\ManagerInterface
13
{
21
public
function
dispatch
($eventName, array
$params
= [])
22
{
23
switch
($eventName) {
24
case
'cms_controller_router_match_before'
:
25
$params
[
'condition'
]->setRedirectUrl(
'http://www.example.com/'
);
26
break
;
27
}
28
29
return
null
;
30
}
31
}
Magento\Framework\Event\Test\Unit\ManagerStub\dispatch
dispatch($eventName, array $params=[])
Definition:
ManagerStub.php:21
Magento\Framework\Event\Test\Unit
Definition:
CollectionTest.php:9
$params
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition:
website.php:18
Magento\Framework\Event\Test\Unit\ManagerStub
Definition:
ManagerStub.php:12