public function PartnerFactory::detectPartner in Lockr 8.2
Return information about the detected partner.
Return value
array|null
1 call to PartnerFactory::detectPartner()
- PartnerFactory::getPartner in src/
PartnerFactory.php - Get a partner object for use with a Lockr client.
File
- src/
PartnerFactory.php, line 62
Class
- PartnerFactory
- Creates partner objects for Lockr clients as well as information about the currently detected partner.
Namespace
Drupal\lockrCode
public function detectPartner() {
if (defined('PANTHEON_BINDING')) {
return [
'name' => 'pantheon',
'title' => 'Pantheon',
'description' => "The Pantheor is strong with this one.\n We're detecting you 're on Pantheon and a friend of theirs is a friend of ours.\n Welcome to Lockr.",
'cert' => '/srv/bindings/' . PANTHEON_BINDING . '/certs/binding.pem',
];
}
return NULL;
}