Class ProductImage
| category |
System |
|---|---|
| package |
Product |
| subpackage |
Entities |
__construct(\FilenameStringType $filename)
getAltText(\LanguageCode $language) : string
Returns the alternative text of a product image.
| Throws |
|
|---|
stringThe alternative text of the product image.
getFilename() : string
Returns the filename of the product.
stringThe filename of the product.
isVisible() : boolean
Checks if the product image is set to visible or not.
booleanIs the product image visible?
setAltText(\StringType $text, \LanguageCode $language) : string
Sets the alternative text of the product image.
stringThe alternative text of the product image.
setVisible(\BoolType $visible) : \ProductImageInterface
Activates or deactivates the products image visibility.
\ProductImageInterfaceSame instance for chained method calls.
filename : string
| var |
|---|
string
altTexts : array
| var |
|---|
array
visibility : boolean
| var |
|---|
boolean