getModeratorTo() public method

Get moderator to email address
public getModeratorTo ( ) : string
return string
Example #1
0
 private function getModeratorEmailIfModerationEnabled(Publication $publication, $user = null)
 {
     if ($publication->getCommentsEnabled()) {
         if ($publication->getCommentsSubscribersModerated() && ($publication->getPublicCommentsEnabled() && $publication->getCommentsPublicModerated())) {
             return $publication->getModeratorTo();
         }
         if ($publication->getPublicCommentsEnabled() && $publication->getCommentsPublicModerated() && !$publication->getCommentsSubscribersModerated() && !$user || $publication->getCommentsSubscribersModerated() && !($publication->getPublicCommentsEnabled() && $publication->getCommentsPublicModerated()) && $user) {
             return $publication->getModeratorTo();
         }
     }
 }