mirror of
https://github.com/flarum/core.git
synced 2025-08-05 16:07:34 +02:00
feat: adds ability for blueprints to ignore user emai; verification
This commit is contained in:
@@ -24,33 +24,40 @@ interface BlueprintInterface
|
|||||||
*
|
*
|
||||||
* @return User|null
|
* @return User|null
|
||||||
*/
|
*/
|
||||||
public function getFromUser();
|
public function getFromUser(): ?User;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the model that is the subject of this activity.
|
* Get the model that is the subject of this activity.
|
||||||
*
|
*
|
||||||
* @return AbstractModel|null
|
* @return AbstractModel|null
|
||||||
*/
|
*/
|
||||||
public function getSubject();
|
public function getSubject(): ?AbstractModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the data to be stored in the notification.
|
* Get the data to be stored in the notification.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function getData();
|
public function getData(): mixed;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the serialized type of this activity.
|
* Get the serialized type of this activity.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function getType();
|
public static function getType(): string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the name of the model class for the subject of this activity.
|
* Get the name of the model class for the subject of this activity.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function getSubjectModel();
|
public static function getSubjectModel(): string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether the blueprint ignores that a user has not verified their email address.
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function ignoresUserVerification(): bool;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user