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