You are here

public function Facebook::getLinkAttributes in Social simple 8

Same name and namespace in other branches
  1. 2.0.x src/SocialNetwork/Facebook.php \Drupal\social_simple\SocialNetwork\Facebook::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 Facebook::getLinkAttributes()
Facebook::getShareLink in src/SocialNetwork/Facebook.php
Checks whether the given transition is allowed.

File

src/SocialNetwork/Facebook.php, line 65

Class

Facebook
The social network Facebook.

Namespace

Drupal\social_simple\SocialNetwork

Code

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;
}