Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Drupal\menu;
- use Drupal\Core\Plugin\PluginDerivativeInterface;
- use Drupal\system\SystemMenuBlock;
- /**
- * @file
- * Menu module block for rendering custom menus from the menu_get_menus()
- * function.
- */
- class MenuBlock extends SystemMenuBlock implements PluginDerivativeInterface {
- public function __construct() {
- $this->menus = menu_get_menus(FALSE);
- $this->derivatives = array();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment