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:
30
core/notifications/notifications-manager.php
Normal file
30
core/notifications/notifications-manager.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace ElementorPro\Core\Notifications;
|
||||
|
||||
use ElementorPro\Plugin;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
class Notifications_Manager {
|
||||
|
||||
/**
|
||||
* Send a notification.
|
||||
*
|
||||
* @param \ElementorPro\Core\Notifications\Notification $notification
|
||||
* @param $notifiable
|
||||
*
|
||||
* @throws \Exception
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function send( Notification $notification, $notifiable ) {
|
||||
$payloads = $notification->get_payloads( $notifiable );
|
||||
|
||||
Plugin::instance()->integrations->run( $payloads );
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user