O'Reilly logo

Drupal 8 for Absolute Beginners by James Barnett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 14

image

Working with Forms and Creating Custom Forms

To be really, really good in your role as a Drupal programmer, you’ll need some tricks up your sleeve. You’ll need to be able to programmatically create nodes, alter forms, and create custom forms. This chapter is dedicated to these subjects so you can really give your customers what they want.

Using the Form API

Let’s start with forms and Form API. The Form API is a reference to the code needed to create forms programmatically in Drupal. The Form API itself is much the same as it was in Drupal 7, but all the code needs to be contained within the new object-oriented framework. This means ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required