protected function ContentTranslationSyncImageTest::saveEntity in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/content_translation/src/Tests/ContentTranslationSyncImageTest.php \Drupal\content_translation\Tests\ContentTranslationSyncImageTest::saveEntity()
Saves the passed entity and reloads it, enabling compatibility mode.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity to be saved.
Return value
\Drupal\Core\Entity\EntityInterface The saved entity.
1 call to ContentTranslationSyncImageTest::saveEntity()
- ContentTranslationSyncImageTest::testImageFieldSync in core/
modules/ content_translation/ src/ Tests/ ContentTranslationSyncImageTest.php - Tests image field field synchronization.
File
- core/
modules/ content_translation/ src/ Tests/ ContentTranslationSyncImageTest.php, line 244 - Contains \Drupal\content_translation\Tests\ContentTranslationSyncImageTest.
Class
- ContentTranslationSyncImageTest
- Tests the field synchronization behavior for the image field.
Namespace
Drupal\content_translation\TestsCode
protected function saveEntity(EntityInterface $entity) {
$entity
->save();
$entity = entity_test_mul_load($entity
->id(), TRUE);
return $entity;
}