src/Extensions/SynonymValidator.php
protected function validateField($fieldName, $value)
    {
        if (!$this->validateValue($value)) {
            $this->validationError(
                $fieldName,
                _t(
                    __CLASS__ . '.InvalidValue',
                    'Synonyms cannot contain words separated by spaces'
                )
            );
        }
    }
protected function validateField($fieldName, $value)
    {
        if (!$this->validateValue($value)) {
            $this->validationError(
                $fieldName,
                _t(
                    __CLASS__ . '.InvalidValue',
                    'Synonyms cannot contain words separated by spaces'
                )
            );
        }
    }
protected function validateField ( $ fieldName , $ value ) { if ( ! $ this -> validateValue ( $ value ) ) { $ this -> validationError ( $ fieldName , _t ( __CLASS__ . '.InvalidValue' , 'Synonyms cannot contain words separated by spaces' ) ) ; } }
Validate field values, raising errors if the values are invalid.

@param string $fieldName
@param mixed $value
Validate field values raising errors if the values are invalid .