- π¦πΊAustralia acbramley
Wow, definitely never knew this existed and can't see how this would ever work.
Changing the id of a type even via code is a massive undertaking, all field config needs to change, display config, form mode config etc. It's not something we should really support. No other entity type (afaik) supports this.
- Merge request !11614Issue #3267268: Deprecate NodeStorage::updateType β (Closed) created by acbramley
- πΊπΈUnited States smustgrave
The CR scared me. If this functionality needs to exist it should be in contrib space I believe, definitely not core.
Seems like a good deprecation.
- πΊπΈUnited States moshe weitzman Boston, MA
Why bother with deprecation? The method does not nearly do the job. Anyone who tried to use it would know that.
- π¦πΊAustralia acbramley
@quietone asked for some more research into when this was added.
It was added in https://git.drupalcode.org/project/drupal/-/commit/129c8eb18c47bf7b0e0fe...
The title of that commit is "Configurable node types" - i.e when node types became configurable. Part of a larger issue #62340: Pave the way for CCK β
The original function did this
db_query("UPDATE {node} SET type = '%s' WHERE type = '%s'", $type, $old_type)
I think we all know how far we've come to understand this type of operation is simply not easily possible in modern Drupal, and therefore should be removed entirely.
The IS describes this a bit as well.
After this, it stayed mostly in this state even as far as 2013 with https://git.drupalcode.org/project/drupal/-/commit/46973e74b5f5bbe278053...
The function was then deprecated in https://git.drupalcode.org/project/drupal/-/commit/d9059c0650e49da532d42... and moved to NodeStorage
- π³πΏNew Zealand quietone
@acbramley, thanks for making time to do the research to provide further evidence that we are losing 'something' by removing this.