public function SocialSimpleGenerator::getNetworks in Social simple 2.0.x
Same name and namespace in other branches
- 8 src/SocialSimpleGenerator.php \Drupal\social_simple\SocialSimpleGenerator::getNetworks()
Return an array of social networks supported.
Return value
array $networks An array of Label social networks supported kyed by their id.
Overrides SocialSimpleGeneratorInterface::getNetworks
1 call to SocialSimpleGenerator::getNetworks()
- SocialSimpleGenerator::generateSocialLinks in src/
SocialSimpleGenerator.php - Build the social share links.
File
- src/
SocialSimpleGenerator.php, line 186
Class
- SocialSimpleGenerator
- Class SocialSimpleGenerator.
Namespace
Drupal\social_simpleCode
public function getNetworks() {
if (empty($this->networks)) {
$this->networks = $this->socialSimpleManager
->getNetworks();
}
return $this->networks;
}