public function Twitter::getLinkAttributes in Social simple 2.0.x
Same name and namespace in other branches
- 8 src/SocialNetwork/Twitter.php \Drupal\social_simple\SocialNetwork\Twitter::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 Twitter::getLinkAttributes()
- Twitter::getShareLink in src/
SocialNetwork/ Twitter.php - Checks whether the given transition is allowed.
File
- src/
SocialNetwork/ Twitter.php, line 75
Class
- The social network Twitter.
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;
}