class ShareButtonsDropdown extends AbstractExtension

Twig extension to provide the xhtml code for requested dropdown button using: ``

Properties

private ShareButtonsServiceInterface $sharebuttonsService Stores the shareButtonsServiceInterface

Methods

__construct(ShareButtonsServiceInterface $sharebuttonsService)

No description

getFunctions()

No description

string
sharebuttonsDropdown(Environment $environment, $shares, $url, $size = 'md', $displayIcon = true, $displayText = false)

Returns the xhtml code for the dropdown button

Details

at line 31
__construct(ShareButtonsServiceInterface $sharebuttonsService)

Parameters

ShareButtonsServiceInterface $sharebuttonsService

at line 36
getFunctions()

at line 54
string sharebuttonsDropdown(Environment $environment, $shares, $url, $size = 'md', $displayIcon = true, $displayText = false)

Returns the xhtml code for the dropdown button

Parameters

Environment $environment
$shares
$url
$size
$displayIcon
$displayText

Return Value

string