Ghost
This is a developer module to assist in building forward-compatible, object-oriented modules. If you are not writing modules or instructed by another module, do not install this.
Ghost contains a number of object-oriented components for building Drupal sites which have previously been part of other modules.
- Object oriented Page Controllers
- Object oriented Form Controllers (with some Drupal 8 compatibility)
- Block plugins
- Logger
Page Controller
Page Controller provides a standardised Controller class for object-oriented page callbacks in Drupal 7, a bit like Drupal 8 page controllers.
This functionality was previously part of the Page Controller module, which is no longer supported.
Form Controller
Provides object-oriented Form Controllers, with a structure similar to Drupal 8.
Block plugins
Allows to you create new Blocks using a plugin discovery mechanism, instead of using hook_block_info() et al.
Logger
An extensible Logging class. Provides watchdog() logging out-of-the-box, but can be extended to support other loggers, or enhance your development process with better logging conditions.