/**
* Sets untranslatable field widgets' display status.
*
* @param bool $display
* Whether untranslatable field widgets should be displayed.
*/
protected function setUntranslatableFieldWidgetsDisplay($display) { $entity_type_id =
$this->storage->
getEntityTypeId();
$settings =
['untranslatable_fields_hide' => !
$display];
$this->contentTranslationManager->
setBundleTranslationSettings($entity_type_id,
$entity_type_id,
$settings);
/** @var \Drupal\Core\Entity\EntityTypeBundleInfo $bundle_info */
$bundle_info =
$this->container->
get('entity_type.bundle.info'
);
$bundle_info->
clearCachedBundles();
} /**
* @return \Drupal\Core\Entity\ContentEntityInterface
*/
protected function saveNewEntity() { /** @var \Drupal\Core\Entity\ContentEntityInterface $entity */
$entity = EntityTestMulRev::
create([