forked from saltonmassally/Drupal-CAC-Modules
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
adad4da
commit e797538
Showing
5 changed files
with
60 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "drupal/auth_prompt", | ||
"type": "drupal-module", | ||
"description": "Auth prompt module for prompting users in Drupal 8.", | ||
"keywords": ["Drupal"], | ||
"license": "GPL-2.0+", | ||
"homepage": "https://www.drupal.org/project/auth_prompt", | ||
"minimum-stability": "dev", | ||
"support": { | ||
"issues": "http://drupal.org/project/issues/auth_prompt", | ||
"source": "http://cgit.drupalcode.org/auth_prompt" | ||
}, | ||
"require": { } | ||
} |
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,28 @@ | ||
<?php | ||
|
||
namespace Drupal\auth_prompt; | ||
|
||
use Symfony\Component\EventDispatcher\Event; | ||
|
||
|
||
class AuthPrompt extends Event { | ||
|
||
const SUBMIT = 'event.submit'; | ||
|
||
protected $referenceID; | ||
|
||
public function __construct($referenceID) | ||
{ | ||
$this->referenceID = $referenceID; | ||
} | ||
|
||
public function getReferenceID() | ||
{ | ||
return $this->referenceID; | ||
} | ||
|
||
public function myEventDescription() { | ||
return "This is as an auth prompt event"; | ||
} | ||
|
||
} |
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