ThemeProviderInterface.php 877 B

12345678910111213141516171819202122232425262728293031323334353637
  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. * Interface ThemeProviderInterface
  9. */
  10. interface ThemeProviderInterface
  11. {
  12. /**
  13. * Get theme from DB by area and theme_path
  14. *
  15. * @param string $fullPath
  16. * @return \Magento\Framework\View\Design\ThemeInterface
  17. */
  18. public function getThemeByFullPath($fullPath);
  19. /**
  20. * Filter theme customization
  21. *
  22. * @param string $area
  23. * @param int $type
  24. * @return array
  25. */
  26. public function getThemeCustomizations($area, $type = \Magento\Framework\View\Design\ThemeInterface::TYPE_VIRTUAL);
  27. /**
  28. * Get theme by id
  29. *
  30. * @param int $themeId
  31. * @return \Magento\Framework\View\Design\ThemeInterface
  32. */
  33. public function getThemeById($themeId);
  34. }