You are here

public static function DrupalApplication::get in CMS Content Sync 2.1.x

Same name and namespace in other branches
  1. 8 src/SyncCoreInterface/DrupalApplication.php \Drupal\cms_content_sync\SyncCoreInterface\DrupalApplication::get()
  2. 2.0.x src/SyncCoreInterface/DrupalApplication.php \Drupal\cms_content_sync\SyncCoreInterface\DrupalApplication::get()

Return value

\DrupalApplication

3 calls to DrupalApplication::get()
SyncCoreFactory::getDummySyncCoreV2 in src/SyncCoreInterface/SyncCoreFactory.php
Allow missing base URL.
SyncCoreFactory::getSyncCore in src/SyncCoreInterface/SyncCoreFactory.php
Return an instance of the ISyncCore Client for the given URL. Cache clients.
SyncCoreFactory::getSyncCoreV2 in src/SyncCoreInterface/SyncCoreFactory.php

File

src/SyncCoreInterface/DrupalApplication.php, line 32

Class

DrupalApplication
Class DrupalApplication.

Namespace

Drupal\cms_content_sync\SyncCoreInterface

Code

public static function get() {
  if (!empty(self::$instance)) {
    return self::$instance;
  }
  return self::$instance = new DrupalApplication();
}