Model
Review
Magento\Review\Model\Review
What it does
This class manages product reviews in Magento 2, handling review creation, validation, status management, and aggregation.
Developers use it to programmatically create reviews, check review approval status, retrieve review collections, calculate review summaries for products, and generate review-related URLs.
It provides methods for both frontend customer reviews and backend review management.
Public Methods
- getProductCollection()
- getStatusCollection()
- getTotalReviews()
- aggregate()
- getEntitySummary()
- getPendingStatus()
- getReviewUrl()
- getProductUrl()
- validate()
- afterDeleteCommit()
- appendSummary()
- isApproved()
- isAvailableOnStore()
- getEntityIdByCode()
- getIdentities()