protected function buildUrlAliasDomainObject(SPIURLAlias $spiUrlAlias, string $path)
    {
        return new URLAlias(
            array(
                'id' => $spiUrlAlias->id,
                'type' => $spiUrlAlias->type,
                'destination' => $spiUrlAlias->destination,
                'languageCodes' => $spiUrlAlias->languageCodes,
                'alwaysAvailable' => $spiUrlAlias->alwaysAvailable,
                'path' => '/' . $path,
                'isHistory' => $spiUrlAlias->isHistory,
                'isCustom' => $spiUrlAlias->isCustom,
                'forward' => $spiUrlAlias->forward,
            )
        );
    }
protected function buildUrlAliasDomainObject(SPIURLAlias $spiUrlAlias, string $path)
    {
        return new URLAlias(
            array(
                'id' => $spiUrlAlias->id,
                'type' => $spiUrlAlias->type,
                'destination' => $spiUrlAlias->destination,
                'languageCodes' => $spiUrlAlias->languageCodes,
                'alwaysAvailable' => $spiUrlAlias->alwaysAvailable,
                'path' => '/' . $path,
                'isHistory' => $spiUrlAlias->isHistory,
                'isCustom' => $spiUrlAlias->isCustom,
                'forward' => $spiUrlAlias->forward,
            )
        );
    }
protected function buildUrlAliasDomainObject ( SPIURLAlias $ spiUrlAlias , string $ path ) { return new URLAlias ( array ( 'id' => $ spiUrlAlias -> id , 'type' => $ spiUrlAlias -> type , 'destination' => $ spiUrlAlias -> destination , 'languageCodes' => $ spiUrlAlias -> languageCodes , 'alwaysAvailable' => $ spiUrlAlias -> alwaysAvailable , 'path' => '/' . $ path , 'isHistory' => $ spiUrlAlias -> isHistory , 'isCustom' => $ spiUrlAlias -> isCustom , 'forward' => $ spiUrlAlias -> forward , ) ) ; }
Builds API UrlAlias object from given SPI UrlAlias object.

@param \eZ\Publish\SPI\Persistence\Content\URLAlias $spiUrlAlias
@param string $path

@return \eZ\Publish\API\Repository\Values\Content\URLAlias
Builds API UrlAlias object from given SPI UrlAlias object .