Book Image

Drupal 8 Blueprints

By : Alex Burrows
Book Image

Drupal 8 Blueprints

By: Alex Burrows

Overview of this book

Drupal is an open source content management framework that can be used for developing websites and simplifying online management of content for users. This book is a must-have for web developers who are looking to create professional-grade websites using Drupal 8. While building 7 different Drupal websites, we will focus on implementing the out of the box features that come with Drupal 8 and see how we can make some complex sites with minimal custom code. Focusing completely on Drupal 8, this book will help you leverage the new Drupal 8 features such as creating a different types and layouts of content using configuration to build in core with its built-in web services facilities, and effortless authoring using the new CKEditor with an effortless and efficient industry standard approach. The book starts with getting started with the development environment of Drupal. Each chapter will start with a brief overview of the site to be built and the required features. Then, we will proceed to create customized modules and themes and integrate third-party plugins. Lastly, you will learn about "headless" Drupal that uses RESTful services that would help you to display content outside of Drupal By the end of the book, you will be able to implement the knowledge gained to build your own custom websites using Drupal 8.
Table of Contents (15 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.Packtpub.com
Customer Feedback
Preface
Free Chapter
1
Introduction and Getting Set Up
3
Get Fundraising with Drupal
5
List Properties with Drupal
6
Express Your Event with Drupal
7
Get Teaching with Drupal

Getting started


In order for us to start, we require to have a clean Drupal 8.x installation.

Once this is set up, we will create our content type. For this chapter, we want to show some cars on our frontend.

In Drupal 8, we have the ability to use REST within Drupal core this means we don't need to develop this functionality as its available within Drupal 8 core just by enabling a few core modules, which we will cover in this chapter.

What is REST?

When we create a web service, we want to allow applications to access that data using a web service. REST stands for Representational State Transfer and it is a way that allows a request over HTTP to be actioned, whether it's GET, POST, PUT, or DELETE.

An example of this is we have a lot of data exposed using REST and it is output to a URL into a JSON format. We can access that data by going to a URL we create; these are known as endpoints and can be any type of URL, for example, /api/cars. What we will see is data from our system formatted in JSON...