- last update
about 1 year ago Patch Failed to Apply - First commit to issue fork.
- Status changed to Needs review
12 months ago 6:27am 11 April 2024 - 🇪🇸Spain akalam
I've created a MR rerolling the patch from #33 to the latest Drupal 11.x release. I'm attaching also a static patch to apply safely from composer
- Status changed to Needs work
12 months ago 9:32pm 11 April 2024 - 🇺🇸United States smustgrave
Believe this feature will need test coverage.
Have not reviewed
- 🇮🇳India gaurav_manerkar Vasco Da Gama, Goa
Issue:
Whenlink
field is made untranslatable for a particular menu type from/admin/config/regional/content-language
, I get the following error:Error: Call to undefined method Drupal\Core\Field\Entity\BaseFieldOverride::setItemDefinition() in Drupal\menu_link_content\Entity\MenuLinkContent->setTranslationConstraints() (line 444 of /var/www/html/docroot/core/modules/menu_link_content/src/Entity/MenuLinkContent.php).
While debugging, i found that when
link
field is translatable, the$item_definition
object is instance of classDrupal\Core\Field\BaseFieldDefinition
and when non-translatable, the object is instance of classDrupal\Core\Field\Entity\BaseFieldOverride
where `setItemDefinition` method is not defined.