- Drupal 8 Development Cookbook(Second Edition)
- Matt Glaman
- 142字
- 2025-04-04 18:20:51
How it works...
The first step to create a view involves selecting the type of data you will be displaying. This is referred to as the base table, which can be any type of entity or data specifically exposed to Views.
Nodes are labeled as Content in Views, and you will find this interchanged terminology throughout Drupal.
When creating a Views page, we add a menu path that can be accessed. It tells Drupal to invoke Views to render the page, which will load the view you create and render it.
There are display style and row plugins that format the data to be rendered. Our recipe used the unformatted list style to wrap each row in a simple div element. We could have changed this to a table for a formatted list. The row display controls how each row is outputted.