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
Interception
Test
Unit
Custom
Module
Model
InterfaceValidator
ItemPlugin
ValidPlugin.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemPlugin
;
8
9
use \Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemWithArguments;
10
11
class
ValidPlugin
12
{
20
public
function
afterGetItem
(
21
ItemWithArguments
$subject,
22
$result
23
) {
24
return
$result
.
'!'
;
25
}
26
34
public
function
beforeGetItem
(
35
ItemWithArguments
$subject,
36
$name
37
) {
38
return
'|'
.
$name
;
39
}
40
49
public
function
aroundGetItem
(
50
ItemWithArguments
$subject,
51
\Closure $proceed,
52
$name
53
) {
54
$proceed(
'&'
.
$name
.
'&'
);
55
}
56
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemPlugin\ValidPlugin\aroundGetItem
aroundGetItem(ItemWithArguments $subject, \Closure $proceed, $name)
Definition:
ValidPlugin.php:49
Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemWithArguments
Definition:
ItemWithArguments.php:8
Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemPlugin\ValidPlugin\afterGetItem
afterGetItem(ItemWithArguments $subject, $result)
Definition:
ValidPlugin.php:20
Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemPlugin\ValidPlugin
Definition:
ValidPlugin.php:11
Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemPlugin\ValidPlugin\beforeGetItem
beforeGetItem(ItemWithArguments $subject, $name)
Definition:
ValidPlugin.php:34
Magento\Framework\Interception\Test\Unit\Custom\Module\Model\InterfaceValidator\ItemPlugin
Definition:
ExtraParameters.php:7
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14