Get product attribute’s option id from label and get option label from id in magento 2.

In Magento 2 We can get product attributes option id from the label and get option label by option id by below way,
Lets we have taken a color attribute and we have to find color label based on color option id.

Let’s assume We have option id 50 and its value is Blue from Attribute code Color.

Call in a template file,

We can get option id from option label and get option label from option id in Magento 2 by above tricks.

How many different types of Eav Entity Types are available in Magento 2?

There are many Eav entity types are available with Magento 2 native.
Check list of Eav Entity Types for Inbuilt out of the box comes with Magento 2,
You can check list of Eav Entity Type from eav_entity_type database table.

All of the above Eav Entity Types are available with Magento 2.