Problem/Motivation
Current "Spam List" (provided by nobotiq_spam_protection) only shows basic information about the spam status. To make the moderation process more efficient, administrators need more context about the content being flagged without leaving the list page.
Specifically, seeing the creation date of the related entity and its teaser (view mode) provides immediate insights into whether the content is legitimate or automated spam.
Proposed changes
This update introduces new Views field handlers to pull data from the related entities (Nodes, Users, etc.) associated with the spam protection record:
Improved Entity Label: Updated the label output to use the native ->label() method for better compatibility and consistency.
Related Entity Created Date: Added a new Views field handler spam_protection_status_related_entity_created to display when the flagged content was created.
Related Entity Teaser: Added a new Views field handler spam_protection_status_related_entity_teaser to render the related entity using the 'teaser' view mode.
Views Data Integration: Exposed these new fields to Views via hook_views_data().
Configuration Update: Updated the default Spam List view configuration to include these fields by default.
Issue fork nobotiq_spam_protection-3581845
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
voleger