Search for hasTranslation

  1. Search 7.x for hasTranslation
  2. Search 8.9.x for hasTranslation
  3. Search 10.3.x for hasTranslation
  4. Search 11.x for hasTranslation
  5. Other projects
Title Object type File name Summary
ContentEntityBase::hasTranslation function core/lib/Drupal/Core/Entity/ContentEntityBase.php Checks there is a translation for the given language code.
ContentEntityBase::hasTranslationChanges function core/lib/Drupal/Core/Entity/ContentEntityBase.php Determines if the current translation of the entity has unsaved changes.
ContentEntityHasChangesTest::testHasTranslationChanges function core/tests/Drupal/KernelTests/Core/Entity/ContentEntityHasChangesTest.php Tests the correct functionality of the hasTranslationChanges() function.
MenuLink::hasTranslation function core/modules/menu_link_content/src/Plugin/migrate/source/MenuLink.php Determines if this menu_link has an i18n translation.
TranslatableInterface::hasTranslation function core/lib/Drupal/Core/TypedData/TranslatableInterface.php Checks there is a translation for the given language code.
TranslatableInterface::hasTranslationChanges function core/lib/Drupal/Core/Entity/TranslatableInterface.php Determines if the current translation of the entity has unsaved changes.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.