CollectorInterface.php 836 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\View\File;
  7. use Magento\Framework\View\Design\ThemeInterface;
  8. /**
  9. * Interface of locating view files in the file system
  10. *
  11. * @api
  12. * @since 100.0.2
  13. */
  14. interface CollectorInterface
  15. {
  16. /**
  17. * Retrieve instances of view files
  18. *
  19. * File path supports the following glob patterns which are translated into regular expressions:
  20. * 1. ? -> [^\]
  21. * 2. * -> [^\]*
  22. * 3. [...], [!...] -> [...], [^...]
  23. * 4. {..,..,...} -> (?:..|..|...)
  24. *
  25. * @param ThemeInterface $theme Theme that defines the design context
  26. * @param string $filePath
  27. * @return \Magento\Framework\View\File[]
  28. */
  29. public function getFiles(ThemeInterface $theme, $filePath);
  30. }