Problem/Motivation

contact_storage_entity_base_field_info() still explicitly sets the provider of the ID field, even though this is no longer necessary. The @todo mentions #1498720: [meta] Make the entity storage system handle changes in the entity and field schema definitions which has long been fixed.

Proposed resolution

Remove the call to setProvider().

Remaining tasks

User interface changes

API changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tstoeckler’s picture

Status: Active » Needs review
FileSize
740 bytes

Here we go.

andypost’s picture

This setting looks needed, or should be converted to alter hook.
See related issue about troubles

andypost’s picture

Looks that part just need to be moved cos provider is still used
Also related issue stuck with that

jibran’s picture

jibran’s picture

Status: Needs review » Reviewed & tested by the community

It's RTBC for me. @andypost can you expand on #4.

jibran’s picture

  • Berdir committed e682b78 on 8.x-1.x authored by jibran
    Issue #2476637 by jibran, tstoeckler: Remove obsolete setting of...
Berdir’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

O'Briat’s picture

For those who just uninstall this version of the module, execute the following code (via drush php or via hook_update) :

  $definition_update_manager = \Drupal::entityDefinitionUpdateManager(); 
  if ($content_translation_status = $definition_update_manager->getFieldStorageDefinition('id', 'contact_message')) {
    $definition_update_manager->uninstallFieldStorageDefinition($content_translation_status);
  }