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