Copied!

AttributeValueTextConverterInterface

AttributeValueTextConverterInterface.php : 19
Interface

Converts a Brand Context attribute value to plain text, for example to use it in AI prompts.

Implementations are registered per attribute type with the ibexa.brand_context.attribute.value_text_converter tag and its identifier attribute.

Methods

publicconvert()

AttributeValueTextConverterInterface.php : 24
public convert(BrandContextAttributeValueInterface $value[, string|null $languageCode = null ]) : non-empty-string|null

Parameters

Name Type Default value Description
$value BrandContextAttributeValueInterface - -
$languageCode string|null null -

Return values

non-empty-string|null