You are here

public function SocialSimpleGenerator::getNetworks in Social simple 8

Same name and namespace in other branches
  1. 2.0.x 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_simple

Code

public function getNetworks() {
  if (empty($this->networks)) {
    $this->networks = $this->socialSimpleManager
      ->getNetworks();
  }
  return $this->networks;
}