Source of file SpamHandler.php
Size: 0,544 Bytes - Last Modified: 2021-12-23T10:28:57+00:00
/var/www/docs.ssmods.com/process/src/src/Admin/CommentsGridFieldBulkAction/SpamHandler.php
1234567891011121314151617181920212223242526272829 | <?php namespace SilverStripe\Comments\Admin\CommentsGridFieldBulkAction; use SilverStripe\Comments\Model\Comment; /** * A {@link Handler} for bulk marking comments as spam */ class SpamHandler extends CommentHandler { private static $url_segment = 'spam'; protected $buttonClasses = 'font-icon-cross-mark'; protected $label = 'Spam'; /** * @param Comment $comment * * @return Comment */ public function updateComment($comment) { $comment->markSpam(); return $comment; } } |