-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PROD-30974: Implement "user logs in" event for the EDA
- Loading branch information
1 parent
04d6329
commit 272f571
Showing
5 changed files
with
238 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
modules/social_features/social_user/src/Event/UserEventDataLite.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Drupal\social_user\Event; | ||
|
||
use Drupal\social_eda\Types\Href; | ||
|
||
/** | ||
* Contains data about an Open Social user. | ||
*/ | ||
class UserEventDataLite { | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function __construct( | ||
public readonly string $id, | ||
public readonly string $created, | ||
public readonly string $updated, | ||
public readonly string $status, | ||
public readonly string $displayName, | ||
public readonly array $roles, | ||
public readonly string $timezone, | ||
public readonly string $language, | ||
public readonly Href $href, | ||
) {} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters