Collection.php 696 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Theme\Model\ResourceModel\Theme\Grid;
  7. /**
  8. * Theme grid collection
  9. * @deprecated 101.0.0
  10. * @see \Magento\Theme\Ui\Component\Theme\DataProvider\SearchResult
  11. */
  12. class Collection extends \Magento\Theme\Model\ResourceModel\Theme\Collection
  13. {
  14. /**
  15. * Add area filter
  16. *
  17. * @return $this
  18. */
  19. protected function _initSelect()
  20. {
  21. \Magento\Theme\Model\ResourceModel\Theme\Collection::_initSelect();
  22. $this->filterVisibleThemes()->addAreaFilter(\Magento\Framework\App\Area::AREA_FRONTEND)->addParentTitle();
  23. return $this;
  24. }
  25. }