From 4f8aa4e0bb696d2451cdfd3ed4d09239c9fcc65d Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Thu, 16 Nov 2017 14:26:27 +0100 Subject: [PATCH] EZP-28028: As a Developer I want API removing Translations to use consistent naming (#2130) * EZP-28028: Renamed Content GW method for deleting Transl. from all Ver. Renamed eZ\Publish\Core\Persistence\Legacy\Content\Gateway::removeTranslationFromContent to deleteTranslationFromContent * EZP-28028: [SPI] Deprecated Content Handler removeTranslationFromContent Deprecated SPI\Persistence\Content\Handler::removeTranslationFromContent in favor of deleteTranslationFromContent * EZP-28028: [PAPI] Added ContentService::deleteTranslation method Deprecated removeTranslation in favor of deleteTranslation * EZP-28028: Refactored tests to use ContentService::deleteTranslation * EZP-28028: Renamed related command to delete-content-translation Renamed remove-content-translation to align with changed naming convention * EZP-28028: [Spec] Aligned removal specification with changes * EZP-28028: Added DeleteTranslationSignal deprecating the old one * Deprecated RemoveTranslationSignal * EZP-28028: Renamed Search Slot RemoveTranslation to DeleteTranslation * EZP-28028: Renamed HttpCache Slot to DeleteTranslationSlot * EZP-28028: Created BC notes --- Persistence/Content/Handler.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Persistence/Content/Handler.php b/Persistence/Content/Handler.php index 8c7766815..e7d858de2 100644 --- a/Persistence/Content/Handler.php +++ b/Persistence/Content/Handler.php @@ -262,11 +262,21 @@ public function publish($contentId, $versionNo, MetadataUpdateStruct $metaDataUp /** * Remove the specified translation from all the Versions of a Content Object. * + * @deprecated since 6.13, use {@see deleteTranslationFromContent} instead + * * @param int $contentId * @param string $languageCode language code of the translation */ public function removeTranslationFromContent($contentId, $languageCode); + /** + * Delete the specified translation from all the Versions of a Content Object. + * + * @param int $contentId + * @param string $languageCode language code of the translation + */ + public function deleteTranslationFromContent($contentId, $languageCode); + /** * Remove the specified Translation from the given Version Draft of a Content Object. *