N98\Magento\Command\Eav\Attribute\ListCommand::_getEntityType PHP Method

_getEntityType() protected method

protected _getEntityType ( $attribute ) : null | string
$attribute
return null | string
    protected function _getEntityType($attribute)
    {
        $entityTypeCode = '';
        try {
            $entityType = $attribute->getEntityType();
            if ($entityType instanceof \Mage_Eav_Model_Entity_Type) {
                $entityTypeCode = $entityType->getEntityTypeCode();
            }
        } catch (Exception $e) {
        }
        return $entityTypeCode;
    }