You are here

public static function ContentSyncSettings::getInstance in CMS Content Sync 2.0.x

Same name and namespace in other branches
  1. 8 src/Controller/ContentSyncSettings.php \Drupal\cms_content_sync\Controller\ContentSyncSettings::getInstance()
  2. 2.1.x src/Controller/ContentSyncSettings.php \Drupal\cms_content_sync\Controller\ContentSyncSettings::getInstance()

Singleton.

Return value

ContentSyncSettings

13 calls to ContentSyncSettings::getInstance()
cms_content_sync_menu_local_actions_alter in ./cms_content_sync.module
DebugForm::buildForm in src/Form/DebugForm.php
Form constructor.
DebugForm::submitForm in src/Form/DebugForm.php
Form submission handler.
Embed::init in src/Controller/Embed.php
FlowListBuilder::render in src/Controller/FlowListBuilder.php
Builds the entity listing as renderable array for table.html.twig.

... See full list

File

src/Controller/ContentSyncSettings.php, line 84

Class

ContentSyncSettings
Class ContentSyncSettings.

Namespace

Drupal\cms_content_sync\Controller

Code

public static function getInstance() {
  static $instance = null;
  if ($instance) {
    return $instance;
  }
  return $instance = self::createInstance(\Drupal::getContainer());
}