public function ContentSyncSettings::setAuthenticationType in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/Controller/ContentSyncSettings.php \Drupal\cms_content_sync\Controller\ContentSyncSettings::setAuthenticationType()
- 2.0.x src/Controller/ContentSyncSettings.php \Drupal\cms_content_sync\Controller\ContentSyncSettings::setAuthenticationType()
Parameters
string $set:
File
- src/
Controller/ ContentSyncSettings.php, line 190
Class
- ContentSyncSettings
- Class ContentSyncSettings.
Namespace
Drupal\cms_content_sync\ControllerCode
public function setAuthenticationType($set) {
$this->configFactory
->getEditable('cms_content_sync.settings')
->set('cms_content_sync_authentication_type', $set)
->save();
$this->authenticationType = $set;
}