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