eZ\Publish\Core\Persistence\Legacy\Content\Section\Handler::createSectionsFromArray PHP Method

createSectionsFromArray() protected method

Creates a Section from the given $data.
protected createSectionsFromArray ( array $data ) : eZ\Publish\SPI\Persistence\Content\Section[]
$data array
return eZ\Publish\SPI\Persistence\Content\Section[]
    protected function createSectionsFromArray(array $data)
    {
        $sections = array();
        foreach ($data as $sectionData) {
            $sections[] = $this->createSectionFromArray($sectionData);
        }
        return $sections;
    }