Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page

Hook actionGetAlternativeSearchPanels

Informations

Additional search panel This hook allows to add an additional search panel for external providers in PrestaShop back office
Hook actionGetAlternativeSearchPanels
Locations
BO
Type action
Origin core
Aliases

This hook has an $array_return parameter set to true (module output will be set by name in an array, see explaination here).

Located in

Origin File
core controllers/admin/AdminSearchController.php

Parameters details

    <?php
    [
        'previous_search_panels' => (array) $searchPanels,
        'bo_query' => (string) $searchedExpression,
    ]

Call of the Hook in the origin file

Hook::exec(
            'actionGetAlternativeSearchPanels',
            [
                'previous_search_panels' => $searchPanels,
                'bo_query' => $searchedExpression,
            ],
            null,
            true
        )