Trying to import not translatable entity type

Created on 4 February 2022, over 2 years ago
Updated 17 February 2023, over 1 year ago

Problem/Motivation

When a share channel is syncronize with content type there is an error :

Error: Call to undefined method Drupal\node\Entity\NodeType::hasTranslation() in Drupal\entity_share_client\Service\ImportService->getProcessedEntity() (line 468 of /var/www/html/web/modules/contrib/entity_share/modules/entity_share_client/src/Service/ImportService.php)

Steps to reproduce

Install drupal 9.3.3

composer require 'drupal/entity_share:^3.0@RC'

Share content types from a channel

Proposed resolution

Verify that the entity is an instance of Drupal\Core\TypedData\TranslatableInterface before calling method hasTranslation.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

πŸ‡«πŸ‡·France asubit

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024