- Issue created by @arousseau
I ran into an issue while using conflict_paragraphs in conjunction with a patch from 📌 Expose target type, selection handler and selection settings in LinkWidget Needs work , which adds a "target_type" setting to the link field type. This target type may be an empty string.
\Drupal\conflict_paragraphs\ConflictResolution\MergeRemoteStructure::resolveConflictsContentEntity
calls ParagraphsWidget::isApplicable()
, even when $field_definition
is not of the type "entity_reference_revisions" type. So when target_type is empty, a \Drupal\Component\Plugin\Exception\PluginNotFoundException
is raised, saying "The "" entity type does not exist."
Turn this :
if (ParagraphsWidget::isApplicable($field_definition))
Into this :
if ($field_definition->getType() === 'entity_reference_revisions' && ParagraphsWidget::isApplicable($field_definition))
Active
3.0
Code