$manufacturer =
$this->manufacturerService->
get( $manufacturerId,
$context );
if ($manufacturer === null
) { throw new Enlight_Controller_Exception('Manufacturer missing, non-existent or invalid', 404
);
} $facets =
[];
foreach ($categoryProducts['facets'
] as $facet) { if (!
$facet instanceof FacetResultInterface ||
$facet->
getFacetName() === 'manufacturer'
) { continue;
} $facets[] =
$facet;
} $categoryProducts['facets'
] =
$facets;
$this->
View()->
assign($categoryProducts);
$this->
View()->
assign('showListing', true
);
$this->
View()->
assign('manufacturer',
$manufacturer);
$this->
View()->
assign('ajaxCountUrlParams',
[