src/Frontend/Modules/Commerce/Engine/Model.php
/**
     * Parse the search results for this module.
     *
     * Note: a module's search function should always:
     *        - accept an array of entry id's
     *        - return only the entries that are allowed to be displayed, with their array's index being the entry's id
     *
     * @param array $ids the ids of the found results
     *
     * @return array
     */
Parse the search results for this module.
Note: a module's search function should always:
- accept an array of entry id's
- return only the entries that are allowed to be displayed, with their array's index being the entry's id

@param array $ids the ids of the found results

@return array
Parse the search results for this module . Note : a module ' s search function should always : - accept an array of entry id ' s - return only the entries that are allowed to be displayed with their array ' s index being the entry ' s id @param array $ids the ids of the found results @return array
public static function search(array $ids): array
    {
        $ids = array_map('intval', array_values($ids));
        $repository = FrontendModel::getContainer()->get('commerce.repository.product');
        return $repository->search($ids);
    }
public static function search ( array $ ids ) : array { $ ids = array_map ( 'intval' , array_values ( $ ids ) ) ; $ repository = FrontendModel :: getContainer ( ) -> get ( 'commerce.repository.product' ) ; return $ repository -> search ( $ ids ) ; }
Parse the search results for this module.
Parse the search results for this module .