Skip directly to content

Drupal 8: Forms, OOP style

on August 12th, 2013 at 9:13:11 PM

Thank you to everyone who provided feedback and encouragement on my first blog post about OOP in Drupal 8. This is the next installment. In the first post, we examined a very simple controller: one that just outputs "Hello.". In the real world, of course, Drupal modules need to do more than that. Often, they provide forms, store the information that's submitted via those forms, and provide pages that display that stored information. So in this post, let's look at how to do that in Drupal 8. In the process, we'll take a brief look at some key OOP concepts: interfaces and inheritance. The

Drupal 8: Hello OOP, Hello world!

on August 2nd, 2013 at 6:50:32 PM

Hello world. This is my first blog post. For those of you who don't know me, I'm effulgentsia on drupal.org. I work within Acquia's OCTO group, and I work a lot on Drupal core, both writing and reviewing patches.

In the course of working on Drupal 8 and attending various Drupal events, I've met quite a few Drupal 7 module developers curious about what they'll need to learn to be successful Drupal 8 module developers. Several people in the Drupal community have started writing blog posts about that, including one earlier this week by Joe Shindelar on writing a Hello World module.

In this post,