Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Entity.php
Go to the documentation of this file.
1 <?php
7 
9 
10 class Entity extends Base
11 {
15  protected $tableAlias = 'e';
16 
23  protected function prepareDataSource(array $ids = [])
24  {
25  return !count($ids)
26  ? $this->createResultCollection()
27  : $this->createResultCollection()->addFieldToFilter($this->getPrimaryResource()->getIdFieldName(), $ids);
28  }
29 }