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

8.0.x
Jennifer Hodgdon 2014-10-12 04:51:20 -07:00
parent 165e9e9705
commit 1a420c934f
1 changed files with 1 additions and 1 deletions

View File

@ -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';
}
/**