src/Sulu/Component/Content/Compat/Block/BlockProperty.php
public function getValue()
    {
        // if size of children smaller than minimum
        if (count($this->properties) < $this->getMinOccurs()) {
            for ($i = count($this->properties); $i < $this->getMinOccurs(); ++$i) {
                $this->initProperties($i, $this->getDefaultTypeName());
            }
        }

        $data = [];
        foreach ($this->properties as $type) {
            $result = ['type' => $type->getName()];
            foreach ($type->getChildProperties() as $property) {
                $result[$property->getName()] = $property->getValue();
            }
            $data[] = $result;
        }

        return $data;
    }
public function getValue()
    {
        // if size of children smaller than minimum
        if (count($this->properties) < $this->getMinOccurs()) {
            for ($i = count($this->properties); $i < $this->getMinOccurs(); ++$i) {
                $this->initProperties($i, $this->getDefaultTypeName());
            }
        }

        $data = [];
        foreach ($this->properties as $type) {
            $result = ['type' => $type->getName()];
            foreach ($type->getChildProperties() as $property) {
                $result[$property->getName()] = $property->getValue();
            }
            $data[] = $result;
        }

        return $data;
    }
public function getValue ( ) { // if size of children smaller than minimum if ( count ( $ this -> properties ) < $ this -> getMinOccurs ( ) ) { for ( $ i = count ( $ this -> properties ) ; $ i < $ this -> getMinOccurs ( ) ; ++ $ i ) { $ this -> initProperties ( $ i , $ this -> getDefaultTypeName ( ) ) ; } } $ data = [ ] ; foreach ( $ this -> properties as $ type ) { $ result = [ 'type' => $ type -> getName ( ) ] ; foreach ( $ type -> getChildProperties ( ) as $ property ) { $ result [ $ property -> getName ( ) ] = $ property -> getValue ( ) ; } $ data [ ] = $ result ; } return $ data ; }
get value of sub properties.

@return array|mixed
get value of sub properties .