LdapNewUserCreatedEvent.php in Lightweight Directory Access Protocol (LDAP) 8.4
File
ldap_user/src/Event/LdapNewUserCreatedEvent.php
View source
<?php
declare (strict_types=1);
namespace Drupal\ldap_user\Event;
use Drupal\user\UserInterface;
if (!class_exists('Drupal\\Component\\EventDispatcher\\Event')) {
class_alias('Symfony\\Component\\EventDispatcher\\Event', 'Drupal\\Component\\EventDispatcher\\Event');
}
use Drupal\Component\EventDispatcher\Event;
class LdapNewUserCreatedEvent extends Event {
public const EVENT_NAME = 'ldap_new_drupal_user_created';
public $account;
public function __construct(UserInterface $account) {
$this->account = $account;
}
}