CustomizationInterface.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\View\Design\Theme;
  7. /**
  8. * Theme customization interface
  9. */
  10. interface CustomizationInterface
  11. {
  12. /**
  13. * Retrieve list of files which belong to a theme
  14. *
  15. * @return \Magento\Framework\View\Design\Theme\Customization\FileInterface[]
  16. */
  17. public function getFiles();
  18. /**
  19. * Retrieve list of files which belong to a theme only by type
  20. *
  21. * @param string $type
  22. * @return \Magento\Framework\View\Design\Theme\Customization\FileInterface[]
  23. */
  24. public function getFilesByType($type);
  25. /**
  26. * Returns customization absolute path
  27. *
  28. * @return string
  29. */
  30. public function getCustomizationPath();
  31. /**
  32. * Get directory where themes files are stored
  33. *
  34. * @return string
  35. */
  36. public function getThemeFilesPath();
  37. /**
  38. * Get path to custom view configuration file
  39. *
  40. * @return string
  41. */
  42. public function getCustomViewConfigPath();
  43. /**
  44. * Reorder files positions
  45. *
  46. * @param string $type
  47. * @param array $sequence
  48. * @return CustomizationInterface
  49. */
  50. public function reorder($type, array $sequence);
  51. /**
  52. * Remove custom files by ids
  53. *
  54. * @param array $fileIds
  55. * @return $this
  56. */
  57. public function delete(array $fileIds);
  58. }