Hook actionSearch

Informations

Hook actionSearch
Locations
FO
Type action
Origin core
Aliases
Description

Located in

Origin File
core src/Adapter/Search/SearchProductSearchProvider.php

Parameters details

    <?php
    array(
      'expr' => (string) Search query,
      'total' => (int) Amount of search results
    );

Call of the Hook in the origin file

Hook::exec('actionSearch', [
                'searched_query' => $queryString,
                'total' => $count,

                // deprecated since 1.7.x
                'expr' => $queryString,
            ])