Sulu\Component\Content\Compat\Structure\LegacyPropertyFactory::createSectionProperty PHP Method

createSectionProperty() private method

private createSectionProperty ( SectionMetadata $property, Sulu\Component\Content\Compat\StructureInterface $structure = null )
$property Sulu\Component\Content\Metadata\SectionMetadata
$structure Sulu\Component\Content\Compat\StructureInterface
    private function createSectionProperty(SectionMetadata $property, StructureInterface $structure = null)
    {
        $sectionProperty = new SectionProperty($property->getName(), ['title' => $property->title, 'info_text' => $property->description], $property->getColspan());
        foreach ($property->getChildren() as $child) {
            $sectionProperty->addChild($this->createProperty($child, $structure));
        }
        return $sectionProperty;
    }