ProductImageInterface

Extends

Interface ProductImageInterface

category

System

package

Product

subpackage

Interfaces

Methods

Get Alt Text

getAltText(\LanguageCode $language) : string

Returns the alternative text of a product image.

Arguments

$language

\LanguageCode

The language code of the alt text to return.

Response

string

The alternative text of the product image.

Get Filename

getFilename() : string

Returns the filename of the product.

Response

string

The filename of the product.

Is Visible

isVisible() : boolean

Checks if the product image is set to visible or not.

Response

boolean

Is the product image visible?

Set Alt Text

setAltText(\StringType $text, \LanguageCode $language) : string

Sets the alternative text of the product image.

Arguments

$text

\StringType

The alternative text for the product image.

$language

\LanguageCode

The language code of the alternative text.

Response

string

The alternative text of the product image.

Set Visible

setVisible(\BoolType $visible) : \ProductImageInterface

Activates or deactivates the products image visibility.

Arguments

$visible

\BoolType

Should the product image be visible?

Response

\ProductImageInterface

Same instance for chained method calls.