[module] Page Controller


Project page quote (external)

Page Controller provides a standardised Controller class for object-oriented page callbacks in Drupal 7, a bit like Drupal 8 page controllers.

Hook_menu accepts any string for the page callback. While passing a standard object or an array suitable for use in call_user_func() won't work here, a static object callback will. We leverage this to provide a standard controller which can be reused for object oriented page callbacks.

Depends on modules [Drupal7]
Required by modules [Drupal7[

Already a very useful little module leveraged by many menu item examples in OOE = Object Oriented Examples = One Of Each, but it could be expanded to include more flexible construction through say factories, instead of assuming a noargs constructor for the eventual callback handler (page controller implementation).

Visit also