You are here

public function DrupalApplication::setSiteUuid in CMS Content Sync 2.0.x

Same name and namespace in other branches
  1. 2.1.x src/SyncCoreInterface/DrupalApplication.php \Drupal\cms_content_sync\SyncCoreInterface\DrupalApplication::setSiteUuid()

File

src/SyncCoreInterface/DrupalApplication.php, line 212

Class

DrupalApplication
Class DrupalApplication.

Namespace

Drupal\cms_content_sync\SyncCoreInterface

Code

public function setSiteUuid(string $set) {
  ContentSyncSettings::getInstance()
    ->setSiteUuid($set);

  // Clear some caches to set the local action buttons to active.
  // @ToDo: Adjust this to just clear the cache tags for the local actions.
  $bins = Cache::getBins();
  $bins['render']
    ->deleteAll();
  $bins['discovery']
    ->deleteAll();
}