Extending Drupal

There are a great many things you can do in Drupal by using just the core facilities. However, when you start going beyond those core facilities, you will start to need to write custom code. Many of the site building features of Drupal 8 are similar to previous versions, but with Symfony under the hood, writing new modules in Drupal 8 is very different. In this chapter, we will be covering the following topics:

  • Using Drush and Composer in order to aid development
  • Creating a new module
  • Understanding configuration and plugins
  • Working with dependency injection
  • Adding new permissions
  • Adding menu routes and menu items
  • Using events and hooks

Get Mastering Drupal 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.