SimpleLdapUserEvent.php in Simple LDAP 8
File
modules/simple_ldap_user/src/Events/SimpleLdapUserEvent.php
View source
<?php
namespace Drupal\simple_ldap_user\Events;
use Drupal\simple_ldap_user\SimpleLdapUser;
use Drupal\user\UserInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
class SimpleLdapUserEvent extends GenericEvent {
protected $ldapUser;
protected $drupalUser;
public function __construct(SimpleLdapUser $ldap_user, UserInterface $drupal_user) {
$this->ldapUser = $ldap_user;
$this->drupalUser = $drupal_user;
}
public function getLdapUser() {
return $this->ldapUser;
}
public function getDrupalUser() {
return $this->drupalUser;
}
}