private function validateDefaultAuthorSetting($name, $value)
    {
        $definedValues = [
            self::DEFAULT_VALUE_EMPTY,
            self::DEFAULT_CURRENT_USER,
        ];

        if (!in_array($value, $definedValues, true)) {
            return new ValidationError(
                "Setting '%setting%' has unknown default value",
                null,
                [
                    '%setting%' => $name,
                ],
                "[$name]"
            );
        }

        return null;
    }
private function validateDefaultAuthorSetting($name, $value)
    {
        $definedValues = [
            self::DEFAULT_VALUE_EMPTY,
            self::DEFAULT_CURRENT_USER,
        ];

        if (!in_array($value, $definedValues, true)) {
            return new ValidationError(
                "Setting '%setting%' has unknown default value",
                null,
                [
                    '%setting%' => $name,
                ],
                "[$name]"
            );
        }

        return null;
    }
private function validateDefaultAuthorSetting ( $ name , $ value ) { $ definedValues = [ self :: DEFAULT_VALUE_EMPTY , self :: DEFAULT_CURRENT_USER , ] ; if ( ! in_array ( $ value , $ definedValues , true ) ) { return new ValidationError ( "Setting '%setting%' has unknown default value" , null , [ '%setting%' => $ name , ] , "[$name]" ) ; } return null ; }
Validates if the defaultAuthor setting has one of the defined values.

@param string $name
@param string $value

@return \eZ\Publish\SPI\FieldType\ValidationError|null
Validates if the defaultAuthor setting has one of the defined values .