Commit 1a420c93 authored by jhodgdon's avatar jhodgdon

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

parent 165e9e97
......@@ -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';
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment