Sulu\Component\Content\Metadata\StructureMetadata::burnProperties PHP Method

burnProperties() public method

The data is therefore duplicated, but this does not matter as we only create this data once. This should be called once after creating the structure and (therefore before writing to the cache).
public burnProperties ( )
    public function burnProperties()
    {
        $properties = [];
        foreach ($this->children as $child) {
            if ($child instanceof SectionMetadata) {
                $properties = array_merge($properties, $child->getChildren());
                continue;
            }
            $properties[$child->name] = $child;
        }
        $this->properties = $properties;
    }