Neos\Flow\Validation\Validator\LabelValidator::isValid PHP Method

isValid() protected method

The given value is valid if it matches the regular expression specified in PATTERN_VALIDCHARACTERS.
protected isValid ( mixed $value ) : void
$value mixed The value that should be validated
return void
    protected function isValid($value)
    {
        if (preg_match(self::PATTERN_VALIDCHARACTERS, $value) === 0) {
            $this->addError('Only letters, numbers, spaces and certain punctuation marks are expected.', 1272298003);
        }
    }
LabelValidator