* @since 100.0.2 */ class User extends \Magento\Backend\Block\Widget\Grid\Container { /** * @var \Magento\User\Model\ResourceModel\User */ protected $_resourceModel; /** * @param \Magento\Backend\Block\Widget\Context $context * @param \Magento\User\Model\ResourceModel\User $resourceModel * @param array $data */ public function __construct( \Magento\Backend\Block\Widget\Context $context, \Magento\User\Model\ResourceModel\User $resourceModel, array $data = [] ) { parent::__construct($context, $data); $this->_resourceModel = $resourceModel; } /** * Class constructor * * @return void */ protected function _construct() { $this->addData( [ \Magento\Backend\Block\Widget\Container::PARAM_CONTROLLER => 'user', \Magento\Backend\Block\Widget\Grid\Container::PARAM_BLOCK_GROUP => 'Magento_User', \Magento\Backend\Block\Widget\Grid\Container::PARAM_BUTTON_NEW => __('Add New User'), \Magento\Backend\Block\Widget\Container::PARAM_HEADER_TEXT => __('Users'), ] ); parent::_construct(); $this->_addNewButton(); } }