Neos\Eel\Context::unwrap PHP Method

unwrap() public method

Unwrap the context value recursively
public unwrap ( ) : mixed
return mixed
    public function unwrap()
    {
        return $this->unwrapValue($this->value);
    }

Usage Example

 /**
  * @test
  * @dataProvider arrayValues
  *
  * @param mixed $value
  * @param mixed $expectedUnwrappedValue
  */
 public function unwrapArrayValues($value, $expectedUnwrappedValue)
 {
     $context = new Context($value);
     $unwrappedValue = $context->unwrap();
     $this->assertSame($expectedUnwrappedValue, $unwrappedValue);
 }