AvailableLocalesInterface.php 698 Bytes
Newer Older
Ketan's avatar
Ketan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Magento\Framework\Locale;

use Magento\Framework\View\DesignInterface;

/**
 * Interface for classes that fetching codes of available locales for the concrete theme.
 */
interface AvailableLocalesInterface
{
    /**
     * Returns array of codes of deployed locales for the theme by given theme code and area.
     *
     * @param string $code theme code identifier
     * @param string $area area in which theme can be applied
     * @return array of locale codes, for example: ['en_US', 'en_GB']
     */
    public function getList($code, $area = DesignInterface::DEFAULT_AREA);
}