You are here

function fft_get_field_types in Field Formatter Template 8

Same name and namespace in other branches
  1. 8.2 fft.module \fft_get_field_types()

Get all available field type.

Return value

array Return array.

1 call to fft_get_field_types()
fft_field_formatter_info_alter in ./fft.module
Implements hook_field_formatter_info_alter().

File

./fft.module, line 322
Field formatter template.

Code

function fft_get_field_types() {
  return array_keys(\Drupal::service('plugin.manager.field.field_type')
    ->getDefinitions());
}