19declare(strict_types=1);
42 return $this->
if->identifier(
'search');
49 public function getAllIdentifications(): array
51 return [$this->
getId()];
58 public function getMetaBarItems(): array
60 $content =
function () {
66 "components/ILIAS/MainMenu",
68 array(
"main_menu_gui" => $this,
"main_menu_search_gui" => $main_search)
70 if (!$uip->replaced()) {
71 $html = $main_search->getHTML();
74 $ac_datasource = $main_search->getAutocompleteSource();
75 $standard_search_action = $main_search->getStandardSearchAction();
76 $user_search_action = $main_search->getUserSearchAction();
78 return $this->dic->ui()->factory()->legacy()->content($uip->getHTML($html))->withAdditionalOnLoadCode(
80 il.SearchMainMenu.init(
82 "$standard_search_action",
92 ->topLegacyItem($this->
getId())
93 ->withLegacyContent($content())
94 ->withSymbol($this->dic->ui()->factory()->symbol()->glyph()->search())
95 ->withTitle($this->dic->language()->txt(
"search"))
97 ->withAvailableCallable(
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Add a search box to main menu.
static _getSearchSettingRefId()
Read the ref_id of Search Settings object.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface IdentificationInterface.