src/Extensions/CommentsExtension.php
public function getModerationRequired()
    {
        if ($this->owner->getCommentsOption('require_moderation_cms')) {
            return $this->owner->getField('ModerationRequired');
        }

        if ($this->owner->getCommentsOption('require_moderation')) {
            return 'Required';
        }

        if ($this->owner->getCommentsOption('require_moderation_nonmembers')) {
            return 'NonMembersOnly';
        }

        return 'None';
    }
public function getModerationRequired()
    {
        if ($this->owner->getCommentsOption('require_moderation_cms')) {
            return $this->owner->getField('ModerationRequired');
        }

        if ($this->owner->getCommentsOption('require_moderation')) {
            return 'Required';
        }

        if ($this->owner->getCommentsOption('require_moderation_nonmembers')) {
            return 'NonMembersOnly';
        }

        return 'None';
    }
public function getModerationRequired ( ) { if ( $ this -> owner -> getCommentsOption ( 'require_moderation_cms' ) ) { return $ this -> owner -> getField ( 'ModerationRequired' ) ; } if ( $ this -> owner -> getCommentsOption ( 'require_moderation' ) ) { return 'Required' ; } if ( $ this -> owner -> getCommentsOption ( 'require_moderation_nonmembers' ) ) { return 'NonMembersOnly' ; } return 'None' ; }
Get comment moderation rules for this parent

None:           No moderation required
Required:       All comments
NonMembersOnly: Only anonymous users

@return string
Get comment moderation rules for this parent