ProductReviews.php 687 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Customer\Controller\Adminhtml\Index;
  7. class ProductReviews extends \Magento\Customer\Controller\Adminhtml\Index
  8. {
  9. /**
  10. * Get customer's product reviews list
  11. *
  12. * @return \Magento\Framework\View\Result\Layout
  13. */
  14. public function execute()
  15. {
  16. $customerId = $this->initCurrentCustomer();
  17. $resultLayout = $this->resultLayoutFactory->create();
  18. $block = $resultLayout->getLayout()->getBlock('admin.customer.reviews');
  19. $block->setCustomerId($customerId)->setUseAjax(true);
  20. return $resultLayout;
  21. }
  22. }