title: How we can get product information by using custom attribute?
body: <p>We can get product information in Magento 1.x by using: </p>
  
  <pre><code>Mage::getModel('catalog/product')-&gt;loadByAttribute('barcode', '12121'); 
  </code></pre>
  
  <p>How we can use this method in Magento 2.x?</p>