Skip to content

Commit

Permalink
EZP-28028: As a Developer I want API removing Translations to use con…
Browse files Browse the repository at this point in the history
…sistent 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
  • Loading branch information
alongosz authored and Łukasz Serwatka committed Nov 16, 2017
1 parent 392e1da commit 4f8aa4e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Persistence/Content/Handler.php
Expand Up @@ -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.
*
Expand Down

0 comments on commit 4f8aa4e

Please sign in to comment.