Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (array $conditions) | |
apply (AbstractDb $collection) | |
It is pool of collection conditions, which can be add to Product Collection. This class was created, as extension point, in order to resolve problem with area specific plugins, which listens product collection. F.E. this class allows to apply stock filter not only for frontend area but for other areas for product collection too
Definition at line 17 of file CollectionModifier.php.
__construct | ( | array | $conditions | ) |
CollectionConditionApplier constructor.
array | $conditions |
Definition at line 28 of file CollectionModifier.php.
apply | ( | AbstractDb | $collection | ) |
Composite method, which apply different product conditions you can register new condition in module/di.xml
AbstractDb | $collection |
Implements CollectionModifierInterface.
Definition at line 41 of file CollectionModifier.php.