public function DrupalApplication::getAuthentication in CMS Content Sync 2.0.x
Same name and namespace in other branches
- 8 src/SyncCoreInterface/DrupalApplication.php \Drupal\cms_content_sync\SyncCoreInterface\DrupalApplication::getAuthentication()
- 2.1.x src/SyncCoreInterface/DrupalApplication.php \Drupal\cms_content_sync\SyncCoreInterface\DrupalApplication::getAuthentication()
File
- src/
SyncCoreInterface/ DrupalApplication.php, line 52
Class
- DrupalApplication
- Class DrupalApplication.
Namespace
Drupal\cms_content_sync\SyncCoreInterfaceCode
public function getAuthentication() {
$type = ContentSyncSettings::getInstance()
->getAuthenticationType();
$authentication_provider = AuthenticationByUser::getInstance();
return [
'type' => $type,
'username' => $authentication_provider
->getUsername(),
'password' => $authentication_provider
->getPassword(),
];
}