Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
menu system
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
7 Jul 2008 at 13:00 UTC
Updated:
29 Jul 2014 at 17:53 UTC
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
Comment #1
mfer commentedbump. This is on my radar again.
Comment #2
marcingy commentedBumping to d8.
Comment #3
marcingy commentedSee http://drupal.org/node/1800686