EclipseGc

Untitled

Apr 3rd, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Drupal\menu;
  4.  
  5. use Drupal\Core\Plugin\PluginDerivativeInterface;
  6. use Drupal\system\SystemMenuBlock;
  7.  
  8. /**
  9.  * @file
  10.  *   Menu module block for rendering custom menus from the menu_get_menus()
  11.  *   function.
  12.  */
  13. class MenuBlock extends SystemMenuBlock implements PluginDerivativeInterface {
  14.  
  15.   public function __construct() {
  16.     $this->menus = menu_get_menus(FALSE);
  17.     $this->derivatives = array();
  18.   }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment