/**
* @param int[] $categoryIds
*
* @return Criteria
*/
public function createBaseCriteria($categoryIds, ShopContextInterface
$context) { $criteria =
new Criteria();
$criteria->
addBaseCondition(new CategoryCondition($categoryIds));
if ($this->config->
get('hideNoInStock'
)) { $criteria->
addBaseCondition(new IsAvailableCondition());
} $criteria->
addBaseCondition( new CustomerGroupCondition([$context->
getCurrentCustomerGroup()->
getId()]) );
$this->eventManager->
notify('Shopware_SearchBundle_Create_Base_Criteria',
[ 'criteria' =>
$criteria,