N98\Magento\Command\Eav\Attribute\RemoveCommandTest::attributeExists PHP Méthode

attributeExists() protected méthode

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