コード例 #1
0
ファイル: ViewExecutable.php プロジェクト: anyforsoft/csua_d8
 /**
  * Returns menu links from the view and the named display handler.
  *
  * @param string $display_id
  *   A display ID.
  *
  * @return array|bool
  *   The generated menu links for this view and display, FALSE if the call
  *   to ::setDisplay failed.
  */
 public function getMenuLinks($display_id = NULL)
 {
     // Prepare the view with the information we have. This was probably already
     // called, but it's good to be safe.
     if (!$this->setDisplay($display_id)) {
         return FALSE;
     }
     // Execute the hook.
     if (isset($this->display_handler)) {
         return $this->display_handler->getMenuLinks();
     }
 }