Code repository for Drupal 8 Development Cookbook, Second Edition, published by Packt This is the code repository for Drupal 8 Development Cookbook Second Edition, published by Packt Publishing. It contains all the supporting project files necessary to work through the book from start to finish.
Drupal is a content management system used to build websites for small businesses, e-commerce, enterprise systems, and much more. Created by over 4,500 contributors, Drupal 8 provides many new features to Drupal. Whether you are new to Drupal, or an experienced Drupalista, Drupal 8 Development Cookbook contains recipes to dive into what Drupal 8 has to offer.
All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.
The code will look like the following:
public function alterRoutes(RouteCollection $collection) {
if ($route = $collection->get('mymodule.mypage'))