I created a "like" flag on the nodes.
I created a view that displays the comments.
I want my view to show only comments posted since the flag date.
The solution will be to create a filter criteria with the filter "Comment: Publication date" (Is greater than or equal to) and replace the value with the date of the flag.
The problem is that there are no tokens for the filter criteria.
There is a tutorial here :
https://www.webomelette.com/creating-custom-views-filter-drupal-8
But I failed to create the criteria filter. This is the first time I've created code for a view.
Can you explain to me in an answer how to do this step by step ?
thank you in advance
I created a folder :
notify_node_new_comment
And a file notify_node_new_comment.yml
that I placed inside :
name: Notify node new comment
description: Notification of new comments.
type: module
core: 8.x
I created an empty file notify_node_new_comment.views.ink
in my folder (I do not know what to put as code).
I also added the following folders :
/scr/Plugin/views