class InviteManager in User External Invite 8
Same name and namespace in other branches
- 2.0.x src/InviteManager.php \Drupal\user_external_invite\InviteManager
Hierarchy
- class \Drupal\user_external_invite\InviteManager
Expanded class hierarchy of InviteManager
1 file declares its use of InviteManager
- UserInviteController.php in src/
Controller/ UserInviteController.php
1 string reference to 'InviteManager'
1 service uses InviteManager
File
- src/
InviteManager.php, line 7
Namespace
Drupal\user_external_inviteView source
class InviteManager {
private $dynamic;
public function __construct(KeyValueFactoryInterface $keyValueFactory, $dynamic) {
$this->keyValueFactory = $keyValueFactory;
$this->dynamic = $dynamic;
}
public function sendInvite($message) {
$key = $this->keyValueFactory
->get('ding');
if ($this
->getDynamic()) {
$key
->set('joop', $message);
return;
}
$key
->set('joop', 'default');
}
/**
* @return mixed
*/
public function getDynamic() {
return $this->dynamic;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InviteManager:: |
private | property | ||
InviteManager:: |
public | function | ||
InviteManager:: |
public | function | ||
InviteManager:: |
public | function |