This is duplicated by every child right now. I don't see a reason to not move that into the base class, it's still separate for every different class.

Look for classes/files that have "extends FieldItemBase". Pick one of the definitions, move it into that class and remove it from that and all other child classes.

Comments

foopang’s picture

Assigned: Unassigned » foopang
foopang’s picture

Status: Active » Needs work
StatusFileSize
new14.7 KB

I think I did something wrong in the patch, trying to fix it.

InvalidArgumentException: Invalid data type has been given. in Drupal\Core\TypedData\TypedDataFactory->createInstance()

berdir’s picture

Status: Needs work » Closed (won't fix)

No, I was wrong, this doesn't work. Thanks for trying.