hi everyone, i have my module banner that contains image which is linked and display on site, what i need to add my module to see how many times someone click on my image? i need to see statistic drupal 8
I am creating files to be run in different situation using scheduled cron jobs. These are mainly for either cleaning nodes, updating or doing other calculations automatically. The drupal site is running in devdesktop.
I have a few of them and so far I have no problem making them do what they should. They all have the same structure and format, using the same basic db functions or node_delete_multiple.
$get_key = $this->connection->query("SELECT * FROM tablekeys WHERE id IN ( SELECT MAX(id) FROM tablekeys WHERE key = 'System' GROUP BY ip) ORDER BY id DESC");
The problem i have is that i can not get any node data like $nid or the node object of the node the media file is beeing attached to.
It is a node with an entity reference(media) and i wanted to create a custom token using taxonmy terms of that node. But that is impossible if i can not get any node data to process.