Reference

Button

Whenever you're dealing with a button in your template, you're actually working with a Button object.

Properties

name

Type: string

The name of the provider.

handle

Type: string

The handle of the provider.

primaryColor

Type: string|null

The primary brand color of the provider.

icon

Type: string|null

The SVG icon of the provider.

url

Type: string|null

The URL, if passed in through renderOptions.

Methods

getRenderOptions()

Returns: array

Returns any render options passed in when creating the button.

getProvider()

Returns: verbb\socialshare\base\Provider

Returns the provider the button is for.

render()

Returns: Twig\Markup|null

Returns the rendered HTML for the button.

Last updated: Sept 14, 2026, 8:34:59 PM