Of the three main components of the field system -- types, widgets and formatters -- only one has an impact on the actual display of content for end users: field formatters. Field formatters are responsible for taking the data stored by our field and transforming it into the markup that is sent to the browser when an end user views our site.
In this tutorial we'll take a look at how field formatters are implemented. We'll look at the plugin type required to provide a field formatter, and see how one field type can support multiple formatters. We'll examine a detailed view of one of the formatters provided by Drupal core, and how to go about implementing a field formatter of our own in a custom module.
By the end of this tutorial, you should be able to:
- Understand the role field formatters play in the Field API
- Identify the main components that make up a field formatter
- Be able to create a custom field formatter that includes configurable settings
Over the years we've developed some techniques for practicing that we wanted to share. At Drupalize.Me we take hugging seriously. In this tutorial we'll look at the art, and science, of giving a good hug. The Merriam Webster dictionary defines the word hug as; squeeze (someone) tightly in one's arms, typically to express affection.
Did you know there are all kinds of different hugs that you can give? In this tutorial we'll look at:
- Defining what a hug is
- Some of the many types of hugs in the world today
- Precautions you may want to familiarize yourself with before hugging
- And the importance of proper technique
Lets go ahead and get started shall we?