* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ declare(strict_types=1); namespace PrestaShop\PrestaShop\Core\Translation\Storage\Provider\Definition; /** * Properties container for Backoffice translation provider. */ class BackofficeProviderDefinition extends AbstractCoreProviderDefinition { private const FILENAME_FILTERS_REGEX = [ '#^Admin[A-Z]#', ]; private const TRANSLATION_DOMAINS_REGEX = [ '^Admin[A-Z]', ]; /** * {@inheritdoc} */ public function getType(): string { return ProviderDefinitionInterface::TYPE_BACK; } /** * {@inheritdoc} */ public function getFilenameFilters(): array { return self::FILENAME_FILTERS_REGEX; } /** * {@inheritdoc} */ public function getTranslationDomains(): array { return self::TRANSLATION_DOMAINS_REGEX; } }