Definition at line 17 of file Manual.php.
◆ __construct()
- Parameters
-
Algorithm | $algorithm | |
Resolver | $layerResolver | |
ScopeConfigInterface | $scopeConfig | |
Render | $render | |
Registry | $coreRegistry | |
Price | $resource | |
Range | $range | |
Definition at line 30 of file Manual.php.
39 $this->algorithm = $algorithm;
40 $this->layer = $layerResolver->get();
41 $this->scopeConfig = $scopeConfig;
42 $this->render = $render;
43 $this->coreRegistry = $coreRegistry;
44 $this->range = $range;
◆ getItemsData()
getItemsData |
( |
array |
$intervals = [] , |
|
|
|
$additionalRequestData = '' |
|
) |
| |
- Parameters
-
| int[] | $intervals |
string | $additionalRequestData | |
- Returns
- array @SuppressWarnings(PHPMD.UnusedFormalParameter)
Implements AlgorithmInterface.
Definition at line 54 of file Manual.php.
57 if (empty($intervals)) {
58 $range = $this->range->getPriceRange();
60 $range = $this->range->getConfigRangeStep();
61 $dbRanges = $this->resource->getCount($range);
62 $dbRanges = $this->processRange($dbRanges);
63 $data = $this->render->renderRangeData($range, $dbRanges);
◆ getMaxIntervalsNumber()
getMaxIntervalsNumber |
( |
| ) |
|
Get maximum number of intervals
- Returns
- int
Definition at line 96 of file Manual.php.
98 return (
int)$this->scopeConfig->getValue(
99 self::XML_PATH_RANGE_MAX_INTERVALS,
100 ScopeInterface::SCOPE_STORE
◆ XML_PATH_RANGE_MAX_INTERVALS
const XML_PATH_RANGE_MAX_INTERVALS = 'catalog/layered_navigation/price_range_max_intervals' |
The documentation for this class was generated from the following file:
- vendor/magento/module-catalog/Model/Layer/Filter/Dynamic/Manual.php