Drupal 8 Development Cookbook

Over 60 hands-on recipes that get you acquainted with Drupal 8's features and help you harness its power

Drupal 8 Development Cookbook

Cookbook
Matt Glaman

8 customer reviews
Over 60 hands-on recipes that get you acquainted with Drupal 8's features and help you harness its power
$10.00
$49.99
RRP $39.99
RRP $49.99
eBook
Print + eBook
$29.99 p/month

Find out more

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3500+ books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781785881473
Paperback370 pages

Book Description

Began as a message board, Drupal today is open source software maintained and developed by a community of over 1,000,000 users and developers. Drupal is used by numerous local businesses to global corporations and diverse organizations all across the globe. With Drupal 8’s recent release and the exciting features it brings, this book will be your go-to guide to experimenting with all of these features through helpful recipes.

We’ll start by showing you how to customize and configure the Drupal environment as per your requirements, as well as how to install third-party libraries and then use them in the Drupal environment. Then we will move on to creating blocks and custom modules with the help of libraries. We will show you to use the latest mobile-first feature of Drupal 8, which will help you make your apps responsive across all the major platforms. This book will also show you how to incorporate multilingual facilities in your sites, use web services and third-party plugins with your applications from inside Drupal 8, and test and deploy your apps

Table of Contents

Chapter 1: Up and Running with Drupal 8
Introduction
Installing Drupal
Using a distribution
Installing modules and themes
Using multisites in Drupal 8
Tools for setting up an environment
Running Simpletest and PHPUnit
Chapter 2: The Content Authoring Experience
Introduction
Configuring the WYSIWYG editor
Adding and editing content
Creating a menu and linking content
Providing inline editing
Creating a custom content type
Applying new Drupal 8 core field types
Customizing the form display of a node
Customizing the display output of a node
Chapter 3: Displaying Content through Views
Introduction
Listing content
Editing the default admin interfaces
Creating a block from a View
Utilizing dynamic arguments
Adding a relationship in a View
Providing an Entity Reference result View
Chapter 4: Extending Drupal
Introduction
Creating a module
Defining a custom page
Defining permissions
Providing the configuration on installation or update
Using Features 2.x
Chapter 5: Frontend for the Win
Introduction
Creating a custom theme based on Classy
Using the new asset management system
Twig templating
Using the Breakpoint module
Using the Responsive Image module
Chapter 6: Creating Forms with the Form API
Introduction
Creating a form
Using new HTML5 elements
Validating form data
Processing submitted form data
Altering other forms
Chapter 7: Plug and Play with Plugins
Introduction
Creating blocks using plugins
Creating a custom field type
Creating a custom field widget
Creating a custom field formatter
Creating a custom plugin type
Chapter 8: Multilingual and Internationalization
Introduction
Translating administrative interfaces
Translating configuration
Translating content
Creating multilingual views
Chapter 9: Configuration Management – Deploying in Drupal 8
Introduction
Importing and exporting configurations
Synchronizing site configurations
Using command-line workflow processes
Using the filesystem for configuration storage
Chapter 10: The Entity API
Introduction
Creating a configuration entity type
Creating a content entity type
Creating a bundle for a content entity type
Implementing custom access control for an entity
Providing a custom storage handler
Creating a route provider
Chapter 11: Off the Drupalicon Island
Introduction
Implementing and using a third-party JavaScript library
Implementing and using a third-party CSS library
Implementing and using a third-party PHP library
Using Composer manager
Chapter 12: Web Services
Introduction
Enabling RESTful interfaces
Using GET to retrieve data
Using POST to create data
Using PATCH to update data
Using Views to provide custom data sources
Authentication
Chapter 13: The Drupal CLI
Introduction
Rebuilding cache in Console or Drush
Using Drush to interact with the database
Using Drush to manage users
Scaffolding code through Console
Making a Drush command
Making a Console command

What You Will Learn

  • Extend Drupal through contributed or custom modules and themes
  • Develop an internationalized website with Drupal's multilingual tools
  • Integrate third-party front-end and back-end libraries with Drupal
  • Turn Drupal into a web services provider using REST
  • Create a mobile-first responsive Drupal application
  • Run SimpleTest and PHPUnit to test Drupal
  • Understand the plugin system that powers many of Drupal 8's new APIs to extend its functionality
  • Get to grips with the mechanics of the configuration management system and the ability to import and export site configuration

Authors

Table of Contents

Chapter 1: Up and Running with Drupal 8
Introduction
Installing Drupal
Using a distribution
Installing modules and themes
Using multisites in Drupal 8
Tools for setting up an environment
Running Simpletest and PHPUnit
Chapter 2: The Content Authoring Experience
Introduction
Configuring the WYSIWYG editor
Adding and editing content
Creating a menu and linking content
Providing inline editing
Creating a custom content type
Applying new Drupal 8 core field types
Customizing the form display of a node
Customizing the display output of a node
Chapter 3: Displaying Content through Views
Introduction
Listing content
Editing the default admin interfaces
Creating a block from a View
Utilizing dynamic arguments
Adding a relationship in a View
Providing an Entity Reference result View
Chapter 4: Extending Drupal
Introduction
Creating a module
Defining a custom page
Defining permissions
Providing the configuration on installation or update
Using Features 2.x
Chapter 5: Frontend for the Win
Introduction
Creating a custom theme based on Classy
Using the new asset management system
Twig templating
Using the Breakpoint module
Using the Responsive Image module
Chapter 6: Creating Forms with the Form API
Introduction
Creating a form
Using new HTML5 elements
Validating form data
Processing submitted form data
Altering other forms
Chapter 7: Plug and Play with Plugins
Introduction
Creating blocks using plugins
Creating a custom field type
Creating a custom field widget
Creating a custom field formatter
Creating a custom plugin type
Chapter 8: Multilingual and Internationalization
Introduction
Translating administrative interfaces
Translating configuration
Translating content
Creating multilingual views
Chapter 9: Configuration Management – Deploying in Drupal 8
Introduction
Importing and exporting configurations
Synchronizing site configurations
Using command-line workflow processes
Using the filesystem for configuration storage
Chapter 10: The Entity API
Introduction
Creating a configuration entity type
Creating a content entity type
Creating a bundle for a content entity type
Implementing custom access control for an entity
Providing a custom storage handler
Creating a route provider
Chapter 11: Off the Drupalicon Island
Introduction
Implementing and using a third-party JavaScript library
Implementing and using a third-party CSS library
Implementing and using a third-party PHP library
Using Composer manager
Chapter 12: Web Services
Introduction
Enabling RESTful interfaces
Using GET to retrieve data
Using POST to create data
Using PATCH to update data
Using Views to provide custom data sources
Authentication
Chapter 13: The Drupal CLI
Introduction
Rebuilding cache in Console or Drush
Using Drush to interact with the database
Using Drush to manage users
Scaffolding code through Console
Making a Drush command
Making a Console command

Book Details

ISBN 139781785881473
Paperback370 pages
Read More
From 8 reviews

Read More Reviews