bundles/BlockManagerBundle/Templating/Twig/Runtime/RenderingRuntime.php
public function renderValue(array $context, $value, array $parameters = [], ?string $viewContext = null): string
    {
        try {
            return $this->renderer->renderValue(
                $value,
                $this->getViewContext($context, $viewContext),
                $parameters
            );
        } catch (Throwable $t) {
            $message = sprintf(
                'Error rendering a value of type "%s"',
                is_object($value) ? get_class($value) : gettype($value)
            );

            $this->errorHandler->handleError($t, $message, ['object' => $value]);
        }

        return '';
    }
public function renderValue(array $context, $value, array $parameters = [], ?string $viewContext = null): string
    {
        try {
            return $this->renderer->renderValue(
                $value,
                $this->getViewContext($context, $viewContext),
                $parameters
            );
        } catch (Throwable $t) {
            $message = sprintf(
                'Error rendering a value of type "%s"',
                is_object($value) ? get_class($value) : gettype($value)
            );

            $this->errorHandler->handleError($t, $message, ['object' => $value]);
        }

        return '';
    }
public function renderValue ( array $ context , $ value , array $ parameters = [ ] , ? string $ viewContext = null ) : string { try { return $ this -> renderer -> renderValue ( $ value , $ this -> getViewContext ( $ context , $ viewContext ) , $ parameters ) ; } catch ( Throwable $ t ) { $ message = sprintf ( 'Error rendering a value of type "%s"' , is_object ( $ value ) ? get_class ( $ value ) : gettype ( $ value ) ) ; $ this -> errorHandler -> handleError ( $ t , $ message , [ 'object' => $ value ] ) ; } return '' ; }
Renders the provided value.

@param array<string, mixed> $context
@param mixed $value
@param array<string, mixed> $parameters
@param string $viewContext

@return string
Renders the provided value .