70 \
Magento\Framework\Registry $coreRegistry,
71 \
Magento\Authorization\Model\RoleFactory $roleFactory,
73 \
Magento\Authorization\Model\RulesFactory $rulesFactory,
75 \
Magento\Framework\Filter\FilterManager $filterManager
77 parent::__construct($context);
78 $this->_coreRegistry = $coreRegistry;
79 $this->_roleFactory = $roleFactory;
80 $this->_userFactory = $userFactory;
81 $this->_rulesFactory = $rulesFactory;
82 $this->_authSession = $authSession;
83 $this->_filterManager = $filterManager;
93 $this->_view->loadLayout();
94 $this->_setActiveMenu(
'Magento_User::system_acl_roles');
109 $role = $this->_roleFactory->create()->load($this->
getRequest()->getParam($requestVariable));
111 if ($role->getId() && $role->getRoleType() != RoleGroup::ROLE_TYPE) {
112 $role->unsetData($role->getIdFieldName());
115 $this->_coreRegistry->register(
'current_role', $role);
116 return $this->_coreRegistry->registry(
'current_role');
_initRole($requestVariable='rid')
__construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\Authorization\Model\RoleFactory $roleFactory, \Magento\User\Model\UserFactory $userFactory, \Magento\Authorization\Model\RulesFactory $rulesFactory, \Magento\Backend\Model\Auth\Session $authSession, \Magento\Framework\Filter\FilterManager $filterManager)
_addBreadcrumb($label, $title, $link=null)