Print a list of all available field types

Public

Get raw version
php
  1. /**
  2.  * Implements hook_help().
  3.  */
  4. function MYMODULE_help($route_name, RouteMatchInterface $route_match) {
  5. // Depends on kint module from devel project.
  6. kint(\Drupal::service('plugin.manager.field.field_type')->getDefinitions());
  7.  
  8. }

Comments

shughan's picture