Reference
Button
Whenever you're dealing with a button in your template, you're actually working with a Button object.
Properties
Type: string
The name of the provider.
Type: string
The handle of the provider.
Type: string|null
The primary brand color of the provider.
Type: string|null
The SVG icon of the provider.
Type: string|null
The URL, if passed in through renderOptions.
Methods
Returns: array
Returns any render options passed in when creating the button.
Returns: verbb\socialshare\base\Provider
Returns the provider the button is for.
Returns: Twig\Markup|null
Returns the rendered HTML for the button.
Last updated: Sept 14, 2026, 8:34:59 PM