Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AbstractCollectionStub.php
Go to the documentation of this file.
1 <?php
7 
8 class AbstractCollectionStub extends \Magento\Eav\Model\Entity\Collection\AbstractCollection
9 {
16  public function getItemById($id)
17  {
18  if (isset($this->_itemsById[$id])) {
19  return $this->_itemsById[$id];
20  }
21  return null;
22  }
23 
29  protected function _construct()
30  {
31  return $this->_init(\Magento\Framework\DataObject::class, 'test_entity_model');
32  }
33 }
$id
Definition: fieldset.phtml:14