1 | <?php |
||
2 | |||
3 | namespace Firegento\DevDashboard\Plugin; |
||
4 | |||
5 | |||
6 | class AddUserTab |
||
7 | { |
||
8 | |||
9 | /** |
||
10 | * @param \Magento\User\Block\User\Edit\Tabs $subject |
||
11 | * @throws \Exception |
||
12 | * @throws \Magento\Framework\Exception\LocalizedException |
||
13 | */ |
||
14 | public function beforeToHtml(\Magento\User\Block\User\Edit\Tabs $subject) |
||
15 | { |
||
16 | $subject->addTabAfter( |
||
17 | 'devdashboardconfig', |
||
18 | [ |
||
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
19 | 'label' => __('Dashboard Config'), |
||
20 | 'title' => __('Dashboard Config'), |
||
21 | 'content' => $subject->getLayout()->createBlock('\Firegento\DevDashboard\Block\UserEditTab')->toHtml(), |
||
22 | 'active' => true |
||
23 | ], |
||
24 | 'roles_section' |
||
25 | ); |
||
26 | |||
27 | return []; |
||
0 ignored issues
–
show
|
|||
28 | |||
29 | } |
||
30 | } |