Collection.php 586 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Newsletter subscriber grid collection
  4. *
  5. * Copyright © Magento, Inc. All rights reserved.
  6. * See COPYING.txt for license details.
  7. */
  8. namespace Magento\Newsletter\Model\ResourceModel\Subscriber\Grid;
  9. class Collection extends \Magento\Newsletter\Model\ResourceModel\Subscriber\Collection
  10. {
  11. /**
  12. * Sets flag for customer info loading on load
  13. *
  14. * @return $this
  15. */
  16. protected function _initSelect()
  17. {
  18. parent::_initSelect();
  19. $this->showCustomerInfo(true)->addSubscriberTypeField()->showStoreInfo();
  20. return $this;
  21. }
  22. }