I created a custom module to display a news feed. When a content is created, the module will create a "Message". The user "Flag" the parent "Group" and receives the messages.
My problem :
When a user flags a "Group", he receives all the "Message", even the "Message" before the Flag.
I want the user to only receive "Message" from the date of the Flag.
You must therefore filter the view like this:
The "Message" created after the Flag date are displayed.
Hello I'm new in drupal, I have a problem with drupal 8.8. The site has a custom module, to obtain data from an API. After editing the source code of it. Clear the cache, restart the server and manually execute the cron, but still the changes are not observed, do I need to do something else? What i'm doing wrong?
in a form after checking on the user I would like to display a msg with a modal window, so that the user is forced to read and then move on.
I currently use \Drupal::messenger()->addMessage()
It sounds simple but I've been struggling with it for long hours:
My question is: how do I get a country name of a certain country in a different language?
The details: I have a multilingual website, Hebrew and English.
When I am on the English website, for example, I have to translate "United status" to Hebrew. But I'm on the English website so I can't use any of the methods...