eZ\Publish\Core\Search\Elasticsearch\Content\CriterionVisitor::prepareValue PHP Метод

prepareValue() защищенный Метод

The value will be converted to string representation and escaped if needed.
protected prepareValue ( mixed $value ) : string
$value mixed
Результат string
    protected function prepareValue($value)
    {
        switch (gettype($value)) {
            case 'boolean':
                return $value ? 'true' : 'false';
            case 'string':
                return '"' . preg_replace('/("|\\\\)/', '\\\\$1', $value) . '"';
            default:
                return (string) $value;
        }
    }