function comment_field_type_category_info_alter
Same name and namespace in other branches
- 10 core/modules/comment/comment.module \comment_field_type_category_info_alter()
Implements hook_field_type_category_info_alter().
File
-
core/
modules/ comment/ comment.module, line 782
Code
function comment_field_type_category_info_alter(&$definitions) {
// The `comment` field type belongs in the `general` category, so the
// libraries need to be attached using an alter hook.
$definitions[FieldTypeCategoryManagerInterface::FALLBACK_CATEGORY]['libraries'][] = 'comment/drupal.comment-icon';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.