code: public function isReviewOptInValidationRequired()
      {
          return (bool)\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam(self::REVIEW_OPTIN_PARAM);
      }
docs: Check if opt in validation for review is required.
  
  @return bool