src/helpers/Url.php
public static function toSearch(string $modelName, array $params = [], string $action = 'index')
    {
        $formName = Inflector::id2camel($modelName) . 'Search';

        return static::toAction($modelName, [$formName => $params], $action);
    }
public static function toSearch(string $modelName, array $params = [], string $action = 'index')
    {
        $formName = Inflector::id2camel($modelName) . 'Search';

        return static::toAction($modelName, [$formName => $params], $action);
    }
public static function toSearch ( string $ modelName , array $ params = [ ] , string $ action = 'index' ) { $ formName = Inflector :: id2camel ( $ modelName ) . 'Search' ; return static :: toAction ( $ modelName , [ $ formName => $ params ] , $ action ) ; }
Build search url.

@param string $modelName
@param array $params
@param string $action
@return array|string
Build search url .