Drupal 8 Development Cookbook - Second Edition

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

Drupal 8 Development Cookbook - Second Edition

Matt Glaman

1 customer reviews
Over 60 hands-on recipes that get you acquainted with Drupal 8'’s features and help you harness its power
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Drupal 8 Development Cookbook - Second Edition Book Cover
Drupal 8 Development Cookbook - Second Edition
$ 35.99
$ 25.20
Drupal 8 Development: Beginner's Guide - Second Edition Book Cover
Drupal 8 Development: Beginner's Guide - Second Edition
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $36.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781788290401
Paperback430 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 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 how 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 with Drupal
Installing modules and themes
Using multisites in Drupal 8
Tools for setting up an environment
Running tests - 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 the installation or update
Creating an event subscriber
Using Features 3.0
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
Updating and installing new module configurations
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
Chapter 12: Web Services
Introduction
Enabling RESTful interfaces
Using POST to create data
Using PATCH to update data
Using Views to provide custom data sources
Authentication
Using JSON API
Chapter 13: The Drupal CLI
Introduction
Rebuilding cache in Drupal 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 with Drupal
Installing modules and themes
Using multisites in Drupal 8
Tools for setting up an environment
Running tests - 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 the installation or update
Creating an event subscriber
Using Features 3.0
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
Updating and installing new module configurations
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
Chapter 12: Web Services
Introduction
Enabling RESTful interfaces
Using POST to create data
Using PATCH to update data
Using Views to provide custom data sources
Authentication
Using JSON API
Chapter 13: The Drupal CLI
Introduction
Rebuilding cache in Drupal 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 139781788290401
Paperback430 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Drupal 8 Development: Beginner's Guide - Second Edition Book Cover
Drupal 8 Development: Beginner's Guide - Second Edition
$ 35.99
$ 25.20
Drupal 8 Module Development - Second Edition Book Cover
Drupal 8 Module Development - Second Edition
$ 35.99
$ 25.20
Embedded Linux Development using Yocto Project Cookbook - Second Edition Book Cover
Embedded Linux Development using Yocto Project Cookbook - Second Edition
$ 35.99
$ 25.20
Boost C++ Application Development Cookbook - Second Edition Book Cover
Boost C++ Application Development Cookbook - Second Edition
$ 39.99
$ 28.00
WordPress Plugin Development Cookbook - Second Edition Book Cover
WordPress Plugin Development Cookbook - Second Edition
$ 31.99
$ 22.40
Visualforce Development Cookbook - Second Edition Book Cover
Visualforce Development Cookbook - Second Edition
$ 39.99
$ 28.00