I want to get customer gender value like Male or Female in magento2? How to get it in \Magento\Customer\Block\Account\Dashboard\Info block,
I am doing something like this
$block->getCustomer()->getGender() I referred this link How to get customer gender value with text in magento2?
I don't want to use ObjectManager just for gender, there must be something via this method $block->getCustomer()->getGender()
$block->getCustomer()->getGender()? you don't have to use the objectmanager to get the customer. use the customersession$block->getCustomer()->getGender()gives me integer value