function comment_field_info_entity_type_ui_definitions_alter

Same name in other branches
  1. 10 core/modules/comment/comment.module \comment_field_info_entity_type_ui_definitions_alter()

Implements hook_field_info_entity_type_ui_definitions_alter().

File

core/modules/comment/comment.module, line 245

Code

function comment_field_info_entity_type_ui_definitions_alter(array &$ui_definitions, string $entity_type_id) {
    if (!_comment_entity_uses_integer_id($entity_type_id)) {
        unset($ui_definitions['comment']);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.