where can I find this file in Magento 2?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
You can find out it in below path
It can be one of following.
vendor/magento/module-wishlist/Block/AbstractBlock.php vendor/magento/module-backend/Block/AbstractBlock.php vendor/magento/framework/View/Element/AbstractBlock.php