Passed
Push — master ( 3791a6...187aba )
by Fabian
03:27
created

src/Plugin/AddUserTab.php (2 issues)

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
Short array syntax is not allowed
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
Short array syntax is not allowed
Loading history...
28
29
    }
30
}