public function SocialNetworkInterface::getShareLink in Social simple 8
Same name and namespace in other branches
- 2.0.x src/SocialNetwork/SocialNetworkInterface.php \Drupal\social_simple\SocialNetwork\SocialNetworkInterface::getShareLink()
Checks whether the given transition is allowed.
Parameters
string $share_url: The url to share.
string $title: The page's title to share.
\Drupal\Core\Entity\EntityInterface $entity: The parent entity.
array $additional_options: Additional options to pass as que query parameter to the social link.
Return value
array the renderable array of the social share link.
7 methods override SocialNetworkInterface::getShareLink()
- EntityPrintPdf::getShareLink in src/
SocialNetwork/ EntityPrintPdf.php - Checks whether the given transition is allowed.
- Facebook::getShareLink in src/
SocialNetwork/ Facebook.php - Checks whether the given transition is allowed.
- GooglePlus::getShareLink in src/
SocialNetwork/ GooglePlus.php - Checks whether the given transition is allowed.
- Linkedin::getShareLink in src/
SocialNetwork/ Linkedin.php - Checks whether the given transition is allowed.
- Mail::getShareLink in src/
SocialNetwork/ Mail.php - Checks whether the given transition is allowed.
File
- src/
SocialNetwork/ SocialNetworkInterface.php, line 30
Class
- SocialNetworkInterface
- Defines the interface for social network.
Namespace
Drupal\social_simple\SocialNetworkCode
public function getShareLink($share_url, $title = '', EntityInterface $entity = NULL, array $additional_options = []);