public functionfieldConfigUpdate(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();
}
}