Skip to content
Snippets Groups Projects
Commit 1a420c93 authored by Jennifer Hodgdon's avatar Jennifer Hodgdon
Browse files

Issue #2354005 by benelori: Fix sample function body for hook_field_formatter_info_alter()

parent 165e9e97
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -224,7 +224,7 @@ function hook_field_widget_WIDGET_TYPE_form_alter(&$element, \Drupal\Core\Form\F
*/
function hook_field_formatter_info_alter(array &$info) {
// Let a new field type re-use an existing formatter.
$info['text_default']['field types'][] = 'my_field_type';
$info['text_default']['field_types'][] = 'my_field_type';
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment