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.
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);