SHARE
TWEET

Untitled

a guest Oct 12th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <exportButton name="export_button" />
  2.     <argument name="data" xsi:type="array">
  3.         <item name="config" xsi:type="array">
  4.             <item name="selectProvider" xsi:type="string">test_listing.test_listing.test_columns.ids</item>
  5.         </item>
  6.      </argument>
  7. </exportButton>
  8.    
  9. class Collection extends TestCollection implements SearchResultInterface
  10. {
  11.      /**
  12.      * {@inheritdoc}
  13.      */
  14.     public function getAggregations()
  15.     {
  16.         return $this->aggregations;
  17.     }
  18.  
  19.     /**
  20.      * {@inheritdoc}
  21.      */
  22.     public function setAggregations($aggregations)
  23.     {
  24.         $this->aggregations = $aggregations;
  25.     }
  26.  
  27.     /**
  28.      * {@inheritdoc}
  29.      */
  30.     public function getSearchCriteria()
  31.     {
  32.         return null;
  33.     }
  34.  
  35.     /**
  36.      * {@inheritdoc}
  37.      */
  38.     public function setSearchCriteria(MagentoFrameworkApiSearchCriteriaInterface $searchCriteria = null)
  39.     {
  40.         return $this;
  41.     }
  42.  
  43.     /**
  44.      * {@inheritdoc}
  45.      */
  46.     public function getTotalCount()
  47.     {
  48.         return $this->getSize();
  49.     }
  50.  
  51.     /**
  52.      * {@inheritdoc}
  53.      */
  54.     public function setTotalCount($totalCount)
  55.     {
  56.         return $this;
  57.     }
  58.  
  59.     /**
  60.      * {@inheritdoc}
  61.      */
  62.     public function setItems(array $items = null)
  63.     {
  64.         return $this;
  65.     }
  66. }
RAW Paste Data
Top