Issue #3129179: Provide some way to rebuild the persistent bundle field map
3 unresolved threads
Closes #3129179
Merge request reports
Activity
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.', 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.
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
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