When I was porting Mollom to drupal 8 I noticed that when I did a hook_form_alter, it wasn't showing the comment form ID as debug information. An important detail is that the page was viewed by an anonymous user.

mollom.module

function mollom_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
print_r($form_id);

Luckily the solution was quite easy:

The problem

Search is a hard problem, it really is. Let me show this by using an example of a food chain that wants to add Drupal as their homepage of the whole chain. Of course, like many other organisations they do not only have Drupal running but also a subset of other web frameworks open and closed source systems.

We had another Drupal Search and Solr office hours. This time mkalkbrenner came to us with a list of issues that he really wanted to see resolved as he already applied them in production.

His use case was a (pay attention!) Drupal site with the following features

Mooi gerenoveerd appartement op het gelijkvloers in klein gebouw (4 appartementen).

Wat heeft dit mooi appartement te bieden?

De fotos kan je onderaan bekijken. Wel opletten want dit zijn de fotos van toen we er in trokken. Als je op bezoek komt zal je dus een volledig ingericht appartement zien. De meubelen kunnen we laten staan (tegen eventueel een prijsje) of weghalen zodat het er weer uitziet zoals op de fotos.

In analogy to the article of the hiphop-php.com site, I'll try to give you a tutorial on how to run Drupal on HHVM

Installing HHVM

For the sake of this case-study, I used a Vagrant Ubuntu “Precise” 12.04 as my linux distribution. Also, to not screw up my local development machine, I'll be using disposable virtual boxes.

Installing VirtualBox

https://www.virtualbox.org/wiki/Downloads Download and install the appropriate version of VirtualBox for your machine