Example #1
0
 /**
  * @return $this
  */
 protected function _prepareCollection()
 {
     $roleId = $this->getRequest()->getParam('rid');
     $this->_coreRegistry->register('RID', $roleId);
     $collection = $this->_userRolesFactory->create();
     $this->setCollection($collection);
     return parent::_prepareCollection();
 }
Example #2
0
 /**
  * Retrieve users collection
  *
  * @return \Magento\User\Model\Resource\Role\User\Collection
  */
 public function getUsersCollection()
 {
     return $this->_userRolesFactory->create();
 }