The current menu system only allows functions to be page callbacks. Let's update that to allow methods on classes to be page callbacks, as well.

This would allow page callback in hook menu to look like

'page callback' => 'my function name',

or

'page callback' => array('myClass', 'myMethod'),

Sometime this next week I'll roll a patch against HEAD that does this.

Comments

mfer’s picture

bump. This is on my radar again.

marcingy’s picture

Version: 7.x-dev » 8.x-dev

Bumping to d8.

marcingy’s picture

Status: Active » Closed (fixed)