* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\ConstraintValidator\Constraints; use PrestaShop\PrestaShop\Core\ConstraintValidator\DefaultLanguageValidator; use Symfony\Component\Validator\Constraint; /** * Class DefaultLanguage is responsible for checking if the array contains default language id - its common to require * default language to be presented when saving required multi-language fields. */ class DefaultLanguage extends Constraint { public $message = 'The field %field_name% is required at least in your default language.'; /** * {@inheritdoc} */ public function validatedBy() { return DefaultLanguageValidator::class; } }