diff --git a/jsonapi_reference.module b/jsonapi_reference.module index c1600ea7772ad4ee85b20bedcb1bb16c5268aae2..9b7f9ef6b899feb497d99249617f18c86668666e 100644 --- a/jsonapi_reference.module +++ b/jsonapi_reference.module @@ -29,3 +29,10 @@ function jsonapi_reference_help($route_name, RouteMatchInterface $route_match) { function jsonapi_reference_field_widget_info_alter(array &$info) { $info['string_textfield']['field_types'][] = 'typed_resource_object'; } + +/** + * Implements hook_field_formatter_info_alter(). + */ +function jsonapi_reference_field_formatter_info_alter(array &$info) { + $info['text_default']['field_types'][] = 'typed_resource_object'; +}