You are here

public function FacebookAuthSettings::getGraphVersion in Social Auth Facebook 8

Same name and namespace in other branches
  1. 8.2 src/Settings/FacebookAuthSettings.php \Drupal\social_auth_facebook\Settings\FacebookAuthSettings::getGraphVersion()
  2. 3.x src/Settings/FacebookAuthSettings.php \Drupal\social_auth_facebook\Settings\FacebookAuthSettings::getGraphVersion()

Gets the graph version.

Return value

string The version.

Overrides FacebookAuthSettingsInterface::getGraphVersion

File

src/Settings/FacebookAuthSettings.php, line 63

Class

FacebookAuthSettings
Defines methods to get Social Auth Facebook app settings.

Namespace

Drupal\social_auth_facebook\Settings

Code

public function getGraphVersion() {
  if (!$this->graphVersion) {
    $this->graphVersion = $this->config
      ->get('graph_version');
  }
  return $this->graphVersion;
}