Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By whiterose83 on
I have a question. Based on the Drupal 8 Example "content_entity_example", how I can filter all contents/entities so a "normal" user only see and can CRUD his own entities?
I search and search but nothing found. I also try to find other modules for 8.x that needs the same logic (e.g. private message on a community) but i don't found everything.
A short example would by very nice or a module that include this logic/function.
Thanks in advance :-)
Comments
Now I have a solution, but I
Now I have a solution, but I'm not sure if it is the best way.
I override in ContactListBuilder.php the methode getEntityIds() with the following: