private function buildRootLocation(SPILocation $spiLocation): APILocation
    {
        //  first known commit of eZ Publish 3.x
        $legacyDateTime = $this->getDateTime(1030968000);

        // NOTE: this is hardcoded workaround for missing ContentInfo on root location
        return $this->mapLocation(
            $spiLocation,
            new ContentInfo([
                'id' => 0,
                'name' => 'Top Level Nodes',
                'sectionId' => 1,
                'mainLocationId' => 1,
                'contentTypeId' => 1,
                'currentVersionNo' => 1,
                'published' => 1,
                'ownerId' => 14, // admin user
                'modificationDate' => $legacyDateTime,
                'publishedDate' => $legacyDateTime,
                'alwaysAvailable' => 1,
                'remoteId' => null,
                'mainLanguageCode' => 'eng-GB',
            ]),
            new Content([])
        );
    }
private function buildRootLocation(SPILocation $spiLocation): APILocation
    {
        //  first known commit of eZ Publish 3.x
        $legacyDateTime = $this->getDateTime(1030968000);

        // NOTE: this is hardcoded workaround for missing ContentInfo on root location
        return $this->mapLocation(
            $spiLocation,
            new ContentInfo([
                'id' => 0,
                'name' => 'Top Level Nodes',
                'sectionId' => 1,
                'mainLocationId' => 1,
                'contentTypeId' => 1,
                'currentVersionNo' => 1,
                'published' => 1,
                'ownerId' => 14, // admin user
                'modificationDate' => $legacyDateTime,
                'publishedDate' => $legacyDateTime,
                'alwaysAvailable' => 1,
                'remoteId' => null,
                'mainLanguageCode' => 'eng-GB',
            ]),
            new Content([])
        );
    }
private function buildRootLocation ( SPILocation $ spiLocation ) : APILocation { //  first known commit of eZ Publish 3.x $ legacyDateTime = $ this -> getDateTime ( 1030968000 ) ; // NOTE: this is hardcoded workaround for missing ContentInfo on root location return $ this -> mapLocation ( $ spiLocation , new ContentInfo ( [ 'id' => 0 , 'name' => 'Top Level Nodes' , 'sectionId' => 1 , 'mainLocationId' => 1 , 'contentTypeId' => 1 , 'currentVersionNo' => 1 , 'published' => 1 , 'ownerId' => 14 , // admin user 'modificationDate' => $ legacyDateTime , 'publishedDate' => $ legacyDateTime , 'alwaysAvailable' => 1 , 'remoteId' => null , 'mainLanguageCode' => 'eng-GB' , ] ) , new Content ( [ ] ) ) ; }
Builds API Location object for tree root.

@param \eZ\Publish\SPI\Persistence\Content\Location $spiLocation

@return \eZ\Publish\API\Repository\Values\Content\Location
Builds API Location object for tree root .