December 2016
Beginner to intermediate
1005 pages
21h 54m
English
Fields are powered through the plugin system in Drupal. Field types are defined using the plugin system. Each field type has its own class. A new field type can be defined through a custom class that will provide schema and property information.
In this example, we will create a simple field type called "real name" to store the first and last names.
Field types just define ways in which data can be stored and handled through the Field API. Field widgets provide means for editing a field type in the user interface. Field formatters provide means for displaying the field data to users. Both are plugins and will be covered in later recipes.
Create a new module like the one existing in the first recipe. We ...
Read now
Unlock full access