Introduction to Drupal 8 Object-Oriented Concepts

Wouter Adem - Technical Architect, Acquia

Understanding Object-Oriented Programming (OOP) has become really critical in Drupal 8. OOP adds benefits such as code reuse and encapsulation, allowing users to build better maintainable and structured code. This does come at a cost for the developer, who must make him or herself familiar with how this is done in PHP: namespaces, PSR-standards and general OOP concepts may all be new if you were previously using Drupal 7.

This webinar will introduce you to the most important OOP concepts in PHP that are also used in Drupal 8 and other modern PHP frameworks or libraries like e.g. Symfony2 and Guzzle. We’ll start slow by introducing the basics of OOP, and will gradually get up to speed, until we'll talk about some more abstract OOP concepts. After this webinar you should be able to recognize the main OOP concepts that Drupal 8 now uses.

At the end of this session, attendees will have a better understanding of:

  • Basic object class structures
  • Visibility
  • Interfaces
  • Traits
  • Abstract classes