You are here

public function EntityPrintPdf::getLinkAttributes in Social simple 8

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

File

src/SocialNetwork/EntityPrintPdf.php, line 120

Class

EntityPrintPdf
The social network Twitter.

Namespace

Drupal\social_simple\SocialNetwork

Code

public function getLinkAttributes($network_name) {
  $attributes = [
    'title' => $network_name,
    'target' => '_blank',
    'rel' => 'noopener noreferrer nofollow',
  ];
  return $attributes;
}