class Auth0UserSignupEvent in Auth0 Single Sign On 8
Same name and namespace in other branches
- 8.2 src/Event/Auth0UserSignupEvent.php \Drupal\auth0\Event\Auth0UserSignupEvent
User signup event.
Hierarchy
- class \Drupal\auth0\Event\Auth0UserSignupEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of Auth0UserSignupEvent
1 file declares its use of Auth0UserSignupEvent
- AuthController.php in src/
Controller/ AuthController.php
File
- src/
Event/ Auth0UserSignupEvent.php, line 9
Namespace
Drupal\auth0\EventView source
class Auth0UserSignupEvent extends Event {
const NAME = 'auth0.signup';
/**
* @var \Drupal\user\UserInterface
*/
protected $user;
/**
* @var array
*/
protected $auth0Profile;
/**
* Initialize the event.
* @param \Drupal\user\UserInterface $user
* @param array $auth0Profile
*/
public function __construct($user, $auth0Profile) {
$this->user = $user;
$this->auth0Profile = $auth0Profile;
}
/**
* Get the drupal user.
* @return \Drupal\user\UserInterface
*/
public function getUser() {
return $this->user;
}
/**
* Get the Auth0 profile.
* @return array
*/
public function getAuth0Profile() {
return $this->auth0Profile;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Auth0UserSignupEvent:: |
protected | property | ||
Auth0UserSignupEvent:: |
protected | property | ||
Auth0UserSignupEvent:: |
public | function | Get the Auth0 profile. | |
Auth0UserSignupEvent:: |
public | function | Get the drupal user. | |
Auth0UserSignupEvent:: |
constant | |||
Auth0UserSignupEvent:: |
public | function | Initialize the event. |