public function EntityTranslationControllerInterface::removeTranslation

Removes the translation values from the given entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity whose values should be removed.

string $langcode: The language code identifying the translation being deleted.

1 method overrides EntityTranslationControllerInterface::removeTranslation()
EntityTranslationController::removeTranslation in drupal/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationController.php
Implements EntityTranslationControllerInterface::removeTranslation().

File

drupal/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationControllerInterface.php, line 166
Definition of Drupal\translation_entity\EntityTranslationControllerInterface.

Class

EntityTranslationControllerInterface
Interface for providing entity translation.

Namespace

Drupal\translation_entity

Code

public function removeTranslation(EntityInterface $entity, $langcode);