src/Sulu/Bundle/PageBundle/Controller/SmartContentItemController.php
private function getParams(array $params)
    {
        $result = [];
        foreach ($params as $name => $item) {
            $value = $item['value'];
            if ('collection' === $item['type']) {
                $value = $this->getParams($value);
            }

            $result[$name] = new PropertyParameter($name, $value, $item['type']);
        }

        return $result;
    }
private function getParams(array $params)
    {
        $result = [];
        foreach ($params as $name => $item) {
            $value = $item['value'];
            if ('collection' === $item['type']) {
                $value = $this->getParams($value);
            }

            $result[$name] = new PropertyParameter($name, $value, $item['type']);
        }

        return $result;
    }
private function getParams ( array $ params ) { $ result = [ ] ; foreach ( $ params as $ name => $ item ) { $ value = $ item [ 'value' ] ; if ( 'collection' === $ item [ 'type' ] ) { $ value = $ this -> getParams ( $ value ) ; } $ result [ $ name ] = new PropertyParameter ( $ name , $ value , $ item [ 'type' ] ) ; } return $ result ; }
Returns property-parameter.

@param array $params

@return PropertyParameter[]
Returns property - parameter .