Collection.php 607 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Authorization\Model\ResourceModel\Role\Grid;
  7. use Magento\Authorization\Model\Acl\Role\Group as RoleGroup;
  8. /**
  9. * Admin role data grid collection
  10. */
  11. class Collection extends \Magento\Authorization\Model\ResourceModel\Role\Collection
  12. {
  13. /**
  14. * Prepare select for load
  15. *
  16. * @return $this
  17. */
  18. protected function _initSelect()
  19. {
  20. parent::_initSelect();
  21. $this->addFieldToFilter('role_type', RoleGroup::ROLE_TYPE);
  22. return $this;
  23. }
  24. }