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

Matt Glaman

3 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
$28.00
RRP $39.99
Save 29%
Print + eBook
$49.99
RRP $49.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
$28.00
$49.99
$29.99p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
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
 
Preview in Mapt

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 3 reviews

Read More Reviews

Recommended for You

Drupal 8 Theming with Twig Book Cover
Drupal 8 Theming with Twig
$ 35.99
$ 25.20
Drupal 7 Module Development Book Cover
Drupal 7 Module Development
$ 26.99
$ 18.90
Drupal 8 Module Development Book Cover
Drupal 8 Module Development
$ 39.99
$ 28.00
Mastering Drupal 8 Views Book Cover
Mastering Drupal 8 Views
$ 35.99
$ 25.20
Drupal 7 Views Cookbook Book Cover
Drupal 7 Views Cookbook
$ 31.99
$ 22.40
Drupal 8 Configuration Management Book Cover
Drupal 8 Configuration Management
$ 23.99
$ 16.80