class ShareButtonsService implements ShareButtonsServiceInterface

Main services related to ShareButtons

Properties

private ConfigServiceInterface $configService Stores ConfigServiceInterface

Methods

__construct(ConfigServiceInterface $configService)

No description

addShare(string $share, string $url)

Adds a share to the database

array
getMainShares()

Returns main share networks

string|null
getShareData(string $share)

Returns data related to share

Details

at line 28
__construct(ConfigServiceInterface $configService)

Parameters

ConfigServiceInterface $configService

at line 36
addShare(string $share, string $url)

Adds a share to the database

Parameters

string $share
string $url

at line 53
array getMainShares()

Returns main share networks

Return Value

array

at line 67
string|null getShareData(string $share)

Returns data related to share

Parameters

string $share

Return Value

string|null