Book Image

Learning Drupal 8

By : Nick Abbott
Book Image

Learning Drupal 8

By: Nick Abbott

Overview of this book

Drupal 8 sets a new standard for ease of use, while offering countless new ways to tailor and deploy your content to the Web. Drupal 8 allows user to easily customize data structures, listings, and pages, and take advantage of new capabilities for displaying data on mobile devices, building APIs, and adapting to multilingual needs. The book takes you step by step through building a Drupal 8 website. Start with the basics, such as setting up a local “stack” development environment and installing your first Drupal 8 site, then move on to image and media handling, and extending Drupal modules. Push your knowledge by getting to grips with the modular nature of Drupal, and learning to extend it by adding new functionalities to create your new modules. By the end of the book, you will be able to develop and manage a modern and responsive website using Drupal.
Table of Contents (21 chapters)
Learning Drupal 8
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Entities, nodes, and fields


When working with Drupal, one of the most important concepts to understand is that you are not just building pages, you are building page containers that consist of components. These components are made up of things called entities.

Entities

Everything you create in Drupal is referred to as an entity.

Nodes

Most viewable content you create will be of a particular type of entity known as a node entity.

Node types

You may often hear the terms "node entity", "node type", and "content type" interchanged routinely, so it's a good idea to think of these terms as synonymous.

There can be many different types of node entities in any given site, but in the standard installation, there are only two content types (node types) defined and they are: Basic page and Article.

Fields

All node entities contain a Title property and one or more fields, an example of which is the Body field. When creating an Article node, we see the following properties, fields, and their types exposed...