Commit 9948cf0b authored by catch's avatar catch

Issue #1882538 by dawehner: Fixed Let's provide a non-broken hook menu...

Issue #1882538 by dawehner: Fixed Let's provide a non-broken hook menu implementation on the plugin base.
parent c05b5bf5
......@@ -2409,8 +2409,18 @@ public function renderMoreLink() {
/**
* If this display creates a page with a menu item, implement it here.
*
* @param array $callbacks
* An array of already existing menu items provided by drupal.
*
* @return array
* The menu router items registers for this display.
*
* @see hook_menu()
*/
public function hookMenu() { return array(); }
public function executeHookMenu($callbacks) {
return array();
}
/**
* Render this display.
......
......@@ -33,7 +33,7 @@ protected function defineOptions() {
}
/**
* Add this display's path information to Drupal's menu system.
* Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::executeHookMenu().
*/
public function executeHookMenu($callbacks) {
$items = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment