Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/TypedData/TranslatableInterface.php \Drupal\Core\TypedData\TranslatableInterface::removeTranslation()
  2. 9 core/lib/Drupal/Core/TypedData/TranslatableInterface.php \Drupal\Core\TypedData\TranslatableInterface::removeTranslation()

Removes the translation identified by the given language code.

Parameters

string $langcode: The language code identifying the translation to be removed.

File

core/lib/Drupal/Core/TypedData/TranslatableInterface.php, line 127

Class

TranslatableInterface
Interface for translatable data.

Namespace

Drupal\Core\TypedData

Code

public function removeTranslation($langcode);