Error: Call to undefined method Drupal\Core\Field\BaseFieldDefinition::createDuplicate()

Created on 28 March 2023, over 1 year ago
Updated 31 May 2024, 7 months ago

Problem/Motivation

I'm getting following error when trying to clone a content type:

Error: Call to undefined method Drupal\Core\Field\BaseFieldDefinition::createDuplicate() in Drupal\content_type_clone\Form\CloneContentType::cloneContentTypeField() (line 67 of /app/web/modules/contrib/content_type_clone/src/Form/CloneContentType.php).

Working with Drupal 9.4.3

This method doesn't seem to exist: https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Field!BaseFieldDe...

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇧🇪Belgium ludo.r Brussels

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024