public function DrupalApplication::setSiteUuid in CMS Content Sync 2.0.x
Same name and namespace in other branches
- 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\SyncCoreInterfaceCode
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();
}