Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
RequiredColumnsProcessor.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
13 
20 {
24  public function process(
27  array $attributeNames
28  ): Collection {
29  $collection->addAttributeToSelect('special_price');
30  $collection->addAttributeToSelect('special_price_from');
31  $collection->addAttributeToSelect('special_price_to');
32  $collection->addAttributeToSelect('tax_class_id');
33 
34  return $collection;
35  }
36 }
$searchCriteria
process(Collection $collection, SearchCriteriaInterface $searchCriteria, array $attributeNames)