diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php index 636acc4..769006e 100644 --- a/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php +++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php @@ -3,6 +3,7 @@ namespace Drupal\Tests\content_translation\Functional; use Drupal\Core\Cache\Cache; +use Drupal\Core\Entity\EntityChangedInterface; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Language\Language; use Drupal\Core\Language\LanguageInterface; @@ -599,7 +600,7 @@ public function doTestChangedTimeAfterSaveWithoutChanges() { $storage->resetCache([$this->entityId]); $entity = $storage->load($this->entityId); // Test only entities, which implement the EntityChangedInterface. - if ($entity->getEntityType()->isSubclassOf('Drupal\Core\Entity\EntityChangedInterface')) { + if ($entity instanceof EntityChangedInterface) { $changed_timestamp = $entity->getChangedTime(); $entity->save();