Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Yes, 'getSearchFormTab()' is a core function in the src/XF/Search/Data/AbstractData.php that when implementing a search handler in an addon, its used to add a TAB to the search. If an addon does not implement a 'getSearchFormTab()' function in the handler, then the abstract returns false.You may have a hint how i can get rid of some of the tabs at the search page, please?
public function getSearchFormTab()
{
return null;
}
public function getSearchFormTab()
{
/** @var \XenAddons\AMS\XF\Entity\User $visitor */
$visitor = \XF::visitor();
if (!method_exists($visitor, 'canViewAmsArticles') || !$visitor->canViewAmsArticles())
{
return null;
}
return [
'title' => \XF::phrase('xa_ams_search_articles'),
'order' => 131
];
}