public function Mail::getLinkAttributes in Social simple 8
Same name and namespace in other branches
- 2.0.x src/SocialNetwork/Mail.php \Drupal\social_simple\SocialNetwork\Mail::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 Mail::getLinkAttributes()
- Mail::getShareLink in src/SocialNetwork/ Mail.php 
- Checks whether the given transition is allowed.
File
- src/SocialNetwork/ Mail.php, line 86 
Class
- The Mail button.
Namespace
Drupal\social_simple\SocialNetworkCode
public function getLinkAttributes($network_name) {
  $attributes = [
    'title' => $network_name,
    'data-popup-open' => 'false',
  ];
  return $attributes;
}