Skip to content
Snippets Groups Projects
Commit 50512e47 authored by Elliot Ward's avatar Elliot Ward Committed by Elliot Ward
Browse files

Issue #3095182 by Eli-T: Allow use the existing text_default field formatter...

Issue #3095182 by Eli-T: Allow use the existing text_default field formatter as the for typed resource object fields
parent ebd085ec
No related branches found
No related tags found
No related merge requests found
...@@ -29,3 +29,10 @@ function jsonapi_reference_help($route_name, RouteMatchInterface $route_match) { ...@@ -29,3 +29,10 @@ function jsonapi_reference_help($route_name, RouteMatchInterface $route_match) {
function jsonapi_reference_field_widget_info_alter(array &$info) { function jsonapi_reference_field_widget_info_alter(array &$info) {
$info['string_textfield']['field_types'][] = 'typed_resource_object'; $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';
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment