mirror of
https://github.com/proelements/proelements.git
synced 2026-04-17 17:42:19 +00:00
v3.33.1
This commit is contained in:
29
core/notifications/notification.php
Normal file
29
core/notifications/notification.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace ElementorPro\Core\Notifications;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
abstract class Notification {
|
||||
|
||||
/**
|
||||
* Get the payloads of the notification data shape (e.g. `Email_Message`, `Database_Message`). Those will automatically
|
||||
* be sent over to the appropriate `Actions` under the `Integration_Manager` (using the `notify()` method).
|
||||
* This method is also used to determine notification channels based on user ($notifiable) preferences.
|
||||
*
|
||||
* Returned shape:
|
||||
* [
|
||||
* $payload1_instance,
|
||||
* $payload2_instance,
|
||||
* ]
|
||||
*
|
||||
* @param \ElementorPro\Core\Notifications\Traits\Notifiable $notifiable - The notified model.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function get_payloads( $notifiable ) {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user