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