You are here

public static function DrupalApplication::get in CMS Content Sync 8

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

1 call to DrupalApplication::get()
SyncCoreFactory::getSyncCore in src/SyncCoreInterface/SyncCoreFactory.php
Return an instance of the ISyncCore Client for the given URL. Cache clients.

File

src/SyncCoreInterface/DrupalApplication.php, line 30

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();
}