Neos\Eel\Context::wrap PHP Method

wrap() public method

Wraps the given value in a new Context
public wrap ( mixed $value ) : Context
$value mixed
return Context
    public function wrap($value)
    {
        if (!$value instanceof Context) {
            return new static($value);
        } else {
            return $value;
        }
    }