Fix "Try to get an inexistent pane." when clicking on the "Search" tab
This commit is contained in:
parent
139baffdc6
commit
ea5db51213
|
@ -19,6 +19,25 @@ class SearchDashboard extends Dashboard
|
|||
*/
|
||||
const SEARCH_PANE = 'search';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getTabs()
|
||||
{
|
||||
if ($this->tabs === null) {
|
||||
$this->tabs = new Tabs();
|
||||
$this->tabs->add(
|
||||
'search',
|
||||
array(
|
||||
'title' => t('Show Search', 'dashboard.pane.tooltip'),
|
||||
'label' => t('Search'),
|
||||
'url' => Url::fromRequest()
|
||||
)
|
||||
);
|
||||
}
|
||||
return $this->tabs;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load all available search dashlets from modules
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue