public
getAltText( LanguageCode $language )
: string
Get Alt Text
Returns the alternative text of a product image.
Parameters
$language
- The language code of the alt text to return.
Returns
string
The alternative text of the product image.
Throws
InvalidArgumentException
if the language code is not valid.
Implementation of
public
setAltText( StringType $text, LanguageCode $language )
: string
Set Alt Text
Sets the alternative text of the product image.
Parameters
$text
- The alternative text for the product image.
$language
- The language code of the alternative text.
Returns
string
The alternative text of the product image.
Implementation of