AvailableLocalesInterface.php 698 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Locale;
  7. use Magento\Framework\View\DesignInterface;
  8. /**
  9. * Interface for classes that fetching codes of available locales for the concrete theme.
  10. */
  11. interface AvailableLocalesInterface
  12. {
  13. /**
  14. * Returns array of codes of deployed locales for the theme by given theme code and area.
  15. *
  16. * @param string $code theme code identifier
  17. * @param string $area area in which theme can be applied
  18. * @return array of locale codes, for example: ['en_US', 'en_GB']
  19. */
  20. public function getList($code, $area = DesignInterface::DEFAULT_AREA);
  21. }