Implement class to handle Menus as Configurations.

Comments

gdrupal’s picture

StatusFileSize
new1.53 KB

Here is a little advance on the menu handler. We could use menu_get_menus() to get the menu names but it does a lot of stuff we do not need also and perhaps we do not want to work with cached information but actual.

dagmar’s picture

Status: Active » Needs work

Nice.

The constructor has changed, the following code:

+  function __construct($identifier) {
+    parent::__construct('menu', $identifier);
+  }

Should be removed, and replaced by this code:

  static protected $component = 'menu';
gdrupal’s picture

Ok! updated... ;)

lucascaro’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
gdrupal’s picture

Status: Needs work » Needs review
StatusFileSize
new4.44 KB

Here is the menu and menu-link component handlers. There is stil a few issues related to the cgi command using drush and the use of a global variable (legacy logic from 1.x) that perhaps would change.

commit f051baa

neoxavier’s picture

#5: menu_handler-1728618-5.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, menu_handler-1728618-5.patch, failed testing.

gdrupal’s picture

Status: Needs work » Closed (fixed)

already committed my bad!