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 
11 class AbstractCollectionStub extends \Magento\Eav\Model\Entity\Collection\VersionControl\AbstractCollection
12 {
19  public function getItemById($id)
20  {
21  if (isset($this->_itemsById[$id])) {
22  return $this->_itemsById[$id];
23  }
24  return null;
25  }
26 
32  protected function _construct()
33  {
34  return $this->_init(\Magento\Framework\DataObject::class, 'test_entity_model');
35  }
36 }
$id
Definition: fieldset.phtml:14