eZ\Publish\Core\Repository\ContentService::publishUrlAliasesForContent PHP Метод

publishUrlAliasesForContent() защищенный Метод

Publishes URL aliases for all locations of a given content.
protected publishUrlAliasesForContent ( eZ\Publish\API\Repository\Values\Content\Content $content, boolean $updatePathIdentificationString = true )
$content eZ\Publish\API\Repository\Values\Content\Content
$updatePathIdentificationString boolean this parameter is legacy storage specific for updating ezcontentobject_tree.path_identification_string, it is ignored by other storage engines
    protected function publishUrlAliasesForContent(APIContent $content, $updatePathIdentificationString = true)
    {
        $urlAliasNames = $this->nameSchemaService->resolveUrlAliasSchema($content);
        $locations = $this->repository->getLocationService()->loadLocations($content->getVersionInfo()->getContentInfo());
        foreach ($locations as $location) {
            foreach ($urlAliasNames as $languageCode => $name) {
                $this->persistenceHandler->urlAliasHandler()->publishUrlAliasForLocation($location->id, $location->parentLocationId, $name, $languageCode, $content->contentInfo->alwaysAvailable, $updatePathIdentificationString ? $languageCode === $content->contentInfo->mainLanguageCode : false);
            }
        }
    }