Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
FirstPlugin.php
Go to the documentation of this file.
1 <?php
7 
9 
11 {
15  protected $_counter = 0;
16 
20  public function aroundC(Intercepted $subject, \Closure $next, $param1)
21  {
22  return '<F:C>' . $next($param1) . '</F:C>';
23  }
24 
28  public function aroundD(Intercepted $subject, \Closure $next, $param1)
29  {
30  $this->_counter++;
31  return '<F:D>' . $this->_counter . ': ' . $next($param1) . '</F:D>';
32  }
33 
37  public function aroundK(Intercepted $subject, \Closure $next, $param1)
38  {
39  $result = $subject->C($param1);
40  return '<F:K>' . $subject->F($result) . '</F:K>';
41  }
42 
46  public function beforeG(Intercepted $subject, $param1)
47  {
48  return ['<F:bG>' . $param1 . '</F:bG>'];
49  }
50 
54  public function aroundG(Intercepted $subject, \Closure $next, $param1)
55  {
56  return $next('<F:G>' . $param1 . '</F:G>');
57  }
58 
62  public function afterG(Intercepted $subject, $result)
63  {
64  return '<F:aG>' . $result . '</F:aG>';
65  }
66 
70  public function beforeV(Intercepted $subject, $param1)
71  {
72  return ['<F:bV/>'];
73  }
74 
78  public function aroundV(Intercepted $subject, \Closure $next, $param1)
79  {
80  return '<F:V>' . $param1 . '<F:V/>';
81  }
82 
86  public function beforeW(Intercepted $subject, $param1)
87  {
88  return ['<F:bW/>'];
89  }
90 
94  public function aroundW(Intercepted $subject, \Closure $next, $param1)
95  {
96  return '<F:W>' . $param1 . '<F:W/>';
97  }
98 
102  public function afterW(Intercepted $subject, $result)
103  {
104  return '<F:aW/>';
105  }
106 
110  public function beforeX(Intercepted $subject, $param1)
111  {
112  return ['<F:bX/>'];
113  }
114 
118  public function aroundY(Intercepted $subject, \Closure $next, $param1)
119  {
120  return '<F:Y>' . $param1 . '<F:Y/>';
121  }
122 
126  public function afterZ(Intercepted $subject, $result)
127  {
128  return '<F:aZ/>';
129  }
130 }
aroundK(Intercepted $subject, \Closure $next, $param1)
Definition: FirstPlugin.php:37
aroundV(Intercepted $subject, \Closure $next, $param1)
Definition: FirstPlugin.php:78
aroundD(Intercepted $subject, \Closure $next, $param1)
Definition: FirstPlugin.php:28
aroundW(Intercepted $subject, \Closure $next, $param1)
Definition: FirstPlugin.php:94
aroundY(Intercepted $subject, \Closure $next, $param1)
aroundC(Intercepted $subject, \Closure $next, $param1)
Definition: FirstPlugin.php:20
aroundG(Intercepted $subject, \Closure $next, $param1)
Definition: FirstPlugin.php:54