Listing.php 671 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Ui\Component;
  7. use Magento\Ui\Component\Listing\Columns;
  8. /**
  9. * @api
  10. * @since 100.0.2
  11. */
  12. class Listing extends AbstractComponent
  13. {
  14. const NAME = 'listing';
  15. /**
  16. * @var array
  17. */
  18. protected $columns = [];
  19. /**
  20. * Get component name
  21. *
  22. * @return string
  23. */
  24. public function getComponentName()
  25. {
  26. return static::NAME;
  27. }
  28. /**
  29. * {@inheritdoc}
  30. */
  31. public function getDataSourceData()
  32. {
  33. return ['data' => $this->getContext()->getDataProvider()->getData()];
  34. }
  35. }