public function GooglePlus::getLinkAttributes in Social simple 2.0.x
Same name and namespace in other branches
- 8 src/SocialNetwork/GooglePlus.php \Drupal\social_simple\SocialNetwork\GooglePlus::getLinkAttributes()
Get common attributes for the share link.
Parameters
string $network_name: The social network name.
Return value
array $attributes an array of link attributes.
Overrides SocialNetworkInterface::getLinkAttributes
1 call to GooglePlus::getLinkAttributes()
- GooglePlus::getShareLink in src/
SocialNetwork/ GooglePlus.php - Checks whether the given transition is allowed.
File
- src/
SocialNetwork/ GooglePlus.php, line 65
Class
- GooglePlus
- The social network Google+.
Namespace
Drupal\social_simple\SocialNetworkCode
public function getLinkAttributes($network_name) {
$attributes = [
'data-popup-width' => 600,
'data-popup-height' => 300,
'data-toggle' => 'tooltip',
'data-placement' => 'top',
'title' => $network_name,
];
return $attributes;
}