lib/Core/Validator/Validator.php
public function validateLocale(string $locale, ?string $propertyPath = null): void
    {
        $this->validate(
            $locale,
            [
                new Constraints\NotBlank(),
                new LocaleConstraint(),
            ],
            $propertyPath
        );
    }
public function validateLocale(string $locale, ?string $propertyPath = null): void
    {
        $this->validate(
            $locale,
            [
                new Constraints\NotBlank(),
                new LocaleConstraint(),
            ],
            $propertyPath
        );
    }
public function validateLocale ( string $ locale , ? string $ propertyPath = null ) : void { $ this -> validate ( $ locale , [ new Constraints \ NotBlank ( ) , new LocaleConstraint ( ) , ] , $ propertyPath ) ; }
Validates the provided locale.

@throws \Netgen\BlockManager\Exception\Validation\ValidationException If the validation failed
Validates the provided locale .