Sulu\Component\Content\Document\Structure\Structure::normalize PHP Method

normalize() protected method

protected normalize ( $value )
    protected function normalize($value)
    {
        if ($value instanceof PropertyValue) {
            $value = $value->getValue();
        }
        if (!is_array($value)) {
            return $value;
        }
        $ret = [];
        foreach ($value as $key => $value) {
            $ret[$key] = $this->normalize($value);
        }
        return $ret;
    }