Implements hook_field_info_entity_type_ui_definitions_alter().
File
- core/
modules/ comment/ comment.module, line 245 - Enables users to comment on published content.
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']);
}
}