N98\Magento\Command\Developer\Setup\Script\AttributeCommand::getAttribute PHP Method

getAttribute() protected method

protected getAttribute ( string $entityType, string $attributeCode ) : mixed
$entityType string
$attributeCode string
return mixed
    protected function getAttribute($entityType, $attributeCode)
    {
        $attribute = $this->_getModel('catalog/resource_eav_attribute', 'Mage_Catalog_Model_Resource_Eav_Attribute')->loadByCode($entityType, $attributeCode);
        return $attribute;
    }