for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Firegento\DevDashboard\Plugin;
use Firegento\DevDashboard\Block\UserEditTab;
class AddUserTab
{
/**
* @param \Magento\User\Block\User\Edit\Tabs $subject
* @throws \Exception
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function beforeToHtml(\Magento\User\Block\User\Edit\Tabs $subject)
$subject->addTabAfter(
'devdashboardconfig',
[
'label' => __('Dashboard Config'),
'title' => __('Dashboard Config'),
'content' => $subject->getLayout()->createBlock(UserEditTab::class)->toHtml(),
'active' => true
],
'roles_section'
);
return [];
}