Skip to content
Snippets Groups Projects

Issue #3129179: Provide some way to rebuild the persistent bundle field map

Open Issue #3129179: Provide some way to rebuild the persistent bundle field map
3 unresolved threads
Open paul121 requested to merge issue/drupal-3129179:3129179-rebuild-bundle-field-map into 11.x
3 unresolved threads

Closes #3129179

Merge request reports

Members who can merge are allowed to add commits.

Merge request pipeline #227428 passed

Merge request pipeline passed for 20a84e1c

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
386 386 else {
387 387 // https://www.drupal.org/node/2451657#comment-11462881
388 388 \Drupal::logger('views')->error(
389 'A non-existent config entity name returned by FieldStorageConfigInterface::getBundles(): entity type: %entity_type, bundle: %bundle, field name: %field',
389 'A non-existent config entity name returned by FieldStorageConfigInterface::getBundles(): entity type: %entity_type, bundle: %bundle, field name: %field. You can trigger a rebuild of the entity bundle field map if needed, see Drupal\Core\Entity\EntityFieldManagerInterface::rebuildBundleFieldMap() for instructions.',
  • Suggested change
    389 'A non-existent config entity name returned by FieldStorageConfigInterface::getBundles(): entity type: %entity_type, bundle: %bundle, field name: %field. You can trigger a rebuild of the entity bundle field map if needed, see Drupal\Core\Entity\EntityFieldManagerInterface::rebuildBundleFieldMap() for instructions.',
    389 'A non-existent config entity name returned by FieldStorageConfigInterface::getBundles(): entity type: %entity_type, bundle: %bundle, field name: %field. The bundle field map may need to be rebuilt, see Drupal\Core\Entity\EntityFieldManagerInterface::rebuildBundleFieldMap().',
    390 [

    Will rebuilding the field map always fix this problem? I am not sure. The sentence needed to change because I removed how to call a method in the interface docs.

  • Please register or sign in to reply
  • quietone
  • 98 98 */
    99 99 public function getFieldMapByFieldType($field_type);
    100 100
    101 /**
    102 * Rebuild the bundle field map.
  • quietone
  • 98 98 */
    99 99 public function getFieldMapByFieldType($field_type);
    100 100
    101 /**
    102 * Rebuild the bundle field map.
    103 *
    104 * This can be used to rebuild the field map on demand. This should not be
    105 * run frequently as it is a potentially slow running task. Use
    106 * \Drupal::service('entity_field.manager')->rebuildBundleFieldMap() to
    107 * run this.
    • Comment on lines +104 to +107
      Suggested change
      104 * This can be used to rebuild the field map on demand. This should not be
      105 * run frequently as it is a potentially slow running task. Use
      106 * \Drupal::service('entity_field.manager')->rebuildBundleFieldMap() to
      107 * run this.
      104 * This can be used to rebuild the field map on demand. Use with caution
      105 * because this can be a slow running task.

      Should this mention the situations where this will be slow?

      The other methods in this interface do not include execute instructions, so I suggest removing that.

    • Please register or sign in to reply
    Please register or sign in to reply
    Loading