You are here

public function Pool::getSyncCoreUrl in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/Entity/Pool.php \Drupal\cms_content_sync\Entity\Pool::getSyncCoreUrl()
  2. 2.0.x src/Entity/Pool.php \Drupal\cms_content_sync\Entity\Pool::getSyncCoreUrl()

Returns the Sync Core URL for this pool.

Return value

string

1 call to Pool::getSyncCoreUrl()
Pool::getClient in src/Entity/Pool.php

File

src/Entity/Pool.php, line 214

Class

Pool
Defines the "Content Sync - Pool" entity.

Namespace

Drupal\cms_content_sync\Entity

Code

public function getSyncCoreUrl() {

  // Check if the BackendUrl got overwritten.
  $cms_content_sync_settings = Settings::get('cms_content_sync');
  if (isset($cms_content_sync_settings, $cms_content_sync_settings['pools'][$this->id]['backend_url'])) {
    return $cms_content_sync_settings['pools'][$this->id]['backend_url'];
  }
  return $this->backend_url;
}