Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
InterfacePlugin.php
Go to the documentation of this file.
1 <?php
8 
10 
12 {
20  public function aroundC(InterceptedInterface $subject, \Closure $next, $param1)
21  {
22  return '<IP:C>' . $next($param1) . '</IP:C>';
23  }
24 
31  public function aroundF(InterceptedInterface $subject, \Closure $next, $param1)
32  {
33  return '<IP:F>' . $subject->D($next($subject->C($param1))) . '</IP:F>';
34  }
35 
39  public function beforeG(InterceptedInterface $subject, $param1)
40  {
41  return ['<IP:bG>' . $param1 . '</IP:bG>'];
42  }
43 
47  public function aroundG(InterceptedInterface $subject, \Closure $next, $param1)
48  {
49  return $next('<IP:G>' . $param1 . '</IP:G>');
50  }
51 
55  public function afterG(InterceptedInterface $subject, $result)
56  {
57  return '<IP:aG>' . $result . '</IP:aG>';
58  }
59 }
aroundF(InterceptedInterface $subject, \Closure $next, $param1)
aroundG(InterceptedInterface $subject, \Closure $next, $param1)
aroundC(InterceptedInterface $subject, \Closure $next, $param1)