N98\Magento\Command\Eav\Attribute\RemoveCommandTest::attributeExists PHP Method

attributeExists() protected method

protected attributeExists ( string $entityType, string $attributeCode ) : boolean
$entityType string
$attributeCode string
return boolean
    protected function attributeExists($entityType, $attributeCode)
    {
        $codes = \Mage::getModel('eav/config')->getEntityAttributeCodes($entityType);
        return in_array($attributeCode, $codes);
    }