title: How to get Product Attribute Options by attribute code in Magento 2.0
body: <p>I am trying to retrieve the list of dropdown attributes and check if the value exists (if it does i need to get the value and assign it to the product) and if it doesnt i will have to create it and get its value to assign it to the product.</p>
  
  <pre><code>$attribute = $this-&gt;objectManager-&gt;create('Magento\Eav\Model\Entity\Attribute');
  $attributeId = $attribute-&gt;getIdByCode('catalog_product','manufacturer');
  $model = $this-&gt;objectManager-&gt;create('Magento\Catalog\Model\ResourceModel\Eav\Attribute');
  $model-&gt;load($attributeId);
  print_r($model-&gt;getFrontendLabel());
  </code></pre>