11.0.x

Form Element Reference

Last updated

Drupal core provides a couple dozen different input #type elements that can be added to forms. This includes one for every standard HTML5 input element, and some Drupal-specific ones that encapsulate more complex interactions like uploading files. But how can you know what elements exist? Where do you find information about what Render API properties each element uses?

In this tutorial we'll:

Define a New Form Controller and Route

Last updated

Provide Default Values for Form Elements

Last updated

Add Input Elements to a Form

Last updated

Alter an Existing Form with hook_form_alter()

Last updated

9.4. Duplicating a View

Last updated

Goal

Create a page listing recipes by duplicating the existing Vendors view. Modify the page so that the recipes are displayed in a grid and can be filtered by ingredients.