Module Development

What's New in Drupal 8: Object-Oriented PHP for Drupal 8

Check your version

This tutorial covers a topic in Drupal 8 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 8, but we consider it archived.

Alternate resources

Sprout Video

This tutorial provides an overview of the major shift in Drupal 8 to an object-oriented architecture and was created to help you understand which concepts and terminology you will need to learn in order to interact with modules at a code level.

Other tutorials in this series on "What's New in Drupal 8" will cover major changes in specific areas of Drupal 8 module development, such as entities and fields, configuration management, web services, and hooks. This tutorial will focus on object-oriented PHP architectural changes, concepts, and terminology you will need to know as a module developer.

Specifically, we will present:

  • an overview of object-oriented PHP
  • why it was introduced into Drupal 8
  • how it differs from procedural programming
  • major OO-PHP concepts you'll find in core

To learn object-oriented PHP, you should begin with our OOP topic page.
[# card #]
nid: 2926
title: OOP topic
[# endcard #]