Breaking: #91066 - Removed ButtonUtility
See forge#91066
Description
The Button
was superfluous and therefor removed.
Impact
You need to remove the usage of the Button
class, otherwise you
will get fatal errors of missing classes.
Affected Installations
All 3rd party extensions that created own widget types with the option to add
a button using the Button
method are
affected.
Migration
First of all you need to change one line in your Widget class. When assigning your button parameter to your Fluid Template, you most probably have the following line:
'button' => ButtonUtility::generateButtonConfig($this->buttonProvider),
You have to change that into:
'button' => $this->buttonProvider,
Because you change the variable passed to your template, you also need to do a small change in your template.
In your template in the footer section, you will find a line like this:
<a href="{button.link}" target="{button.target}" class="widget-cta">{f:translate(id: button.text, default: button.text)}</a>
You need to change the text property to the title property. So the line above will become:
<a href="{button.link}" target="{button.target}" class="widget-cta">{f:translate(id: button.title, default: button.title)}</a>