function comment_field_config_update
Implements hook_ENTITY_TYPE_update() for 'field_config'.
File
- 
              core/modules/ comment/ comment.module, line 147 
Code
function comment_field_config_update(FieldConfigInterface $field) {
  if ($field->getType() == 'comment') {
    // Comment field settings also affects the rendering of *comment* entities,
    // not only the *commented* entities.
    \Drupal::entityTypeManager()->getViewBuilder('comment')
      ->resetCache();
  }
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
