public function DrupalApplication::getAuthentication in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/SyncCoreInterface/DrupalApplication.php \Drupal\cms_content_sync\SyncCoreInterface\DrupalApplication::getAuthentication()
- 2.0.x src/SyncCoreInterface/DrupalApplication.php \Drupal\cms_content_sync\SyncCoreInterface\DrupalApplication::getAuthentication()
File
- src/
SyncCoreInterface/ DrupalApplication.php, line 50
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(),
];
}