You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NewsletterStore.php 846B

3 jaren geleden
123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Lc\CaracoleBundle\Repository\Newsletter;
  3. use Lc\CaracoleBundle\Repository\SectionStoreTrait;
  4. use Lc\SovBundle\Repository\Newsletter\NewsletterStore as SovNewsletterStore;
  5. use Lc\SovBundle\Repository\RepositoryQueryInterface;
  6. class NewsletterStore extends SovNewsletterStore
  7. {
  8. use SectionStoreTrait;
  9. public function orderByDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
  10. {
  11. $query->orderBy('position');
  12. return $query;
  13. }
  14. public function filtersDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
  15. {
  16. $query->filterBySection($this->section);
  17. $query->filterIsOnlineAndOffline();
  18. return $query;
  19. }
  20. public function relationsDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
  21. {
  22. return $query;
  23. }
  24. }