Drupal::messenger()->addMessage() to selected $uid for server-server requests

What is the most elegant way to send a notification to a specified UID from an anonymous session? I have a webhook (function triggered by server-server request) that need to notify the relevant users about incoming payments from the bank.

What exactly do I need?

Drupal::messenger()->addMessage(t('Send message to selected UID=10.'), 'error', TRUE, $uid=10);

What I tried to achieve it?

Custom Table Fetch Data

How to show content from custom table in Drupal 8?

How to fetch theme logo URL in json file using REST UI

I am not able to fetch drupal 8 theme logo url in json file using rest ui.

So please help me out , if any one done before.    Thanks.......

User login by web service

When i am trying to login by webservice api in drupal then it is working fine but when i did more than 5 invalid attempts then after i tried with valid credential then it still allow me to login. I am using restclient.

Finding the right type of help

Hi,

I’ve been kinda lurking in the background for the last five years, but I’ve reached a point where I need to step out and get some advice on how to get over a hurdle to launching a site.  I have been working on different projects for a long time, but with very slow progress.  This particular site has grown increasingly important to me. So much so that it has now turned into an urgent situation.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x