Collection.php 809 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Bundle\Model\ResourceModel\Selection\Plugin;
  7. use Magento\Store\Model\Store;
  8. class Collection
  9. {
  10. /**
  11. * Join website product limitation override
  12. * we don't need the website->product filter for children on selections
  13. *
  14. * @param \Magento\Bundle\Model\ResourceModel\Selection\Collection $subject
  15. * @param \Closure $proceed
  16. * @param null|string|bool|int|Store $store
  17. * @return $this
  18. * @SuppressWarnings(PHPMD.UnusedFormalParameter)
  19. */
  20. public function aroundAddStoreFilter(
  21. \Magento\Bundle\Model\ResourceModel\Selection\Collection $subject,
  22. \Closure $proceed,
  23. $store = null
  24. ) {
  25. return $subject;
  26. }
  27. }