ButtonProductComparison
in package
This is the ButtonProductComparison class, a macro class for the productViewHelper.
The purpose of this class is to encapsulate the logic that calculates the view parameters for the product's wishlist button.
Tags
Table of Contents
$allowDelete | : bool | |
---|---|---|
$class | : string | |
$product | : Product|null | |
$showLabel | : bool | |
__construct() | Constructor method for ButtonProductComparison class. | : mixed |
getViewParameters() | This method returns all calculated arguments and new parameters for ProductViewHelper.php | : array<string|int, mixed> |
getProperties() | : array<string|int, mixed> |
Properties
$allowDelete
public
bool
$allowDelete
= true
$class
public
string
$class
= ''
$product
public
Product|null
$product
= null
$showLabel
public
bool
$showLabel
= true
Methods
__construct()
Constructor method for ButtonProductComparison class.
public
__construct(array<string|int, mixed> $arguments) : mixed
Parameters
- $arguments : array<string|int, mixed>
Tags
Return values
mixed —getViewParameters()
This method returns all calculated arguments and new parameters for ProductViewHelper.php
public
getViewParameters() : array<string|int, mixed>
Return values
array<string|int, mixed> —getProperties()
protected
getProperties() : array<string|int, mixed>