N98\Magento\Command\Eav\Attribute\ListCommand::_getEntityType PHP Метод

_getEntityType() защищенный Метод

protected _getEntityType ( $attribute ) : null | string
$attribute
Результат 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;
    }