CustomersNewest.php 632 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Backend\Controller\Adminhtml\Dashboard;
  8. class CustomersNewest extends AjaxBlock
  9. {
  10. /**
  11. * Gets latest customers list
  12. *
  13. * @return \Magento\Framework\Controller\Result\Raw
  14. */
  15. public function execute()
  16. {
  17. $output = $this->layoutFactory->create()
  18. ->createBlock(\Magento\Backend\Block\Dashboard\Tab\Customers\Newest::class)
  19. ->toHtml();
  20. $resultRaw = $this->resultRawFactory->create();
  21. return $resultRaw->setContents($output);
  22. }
  23. }