In Magento 1 I could get the current page layout handle like this
$handle = Mage::app()->getFrontController()->getAction()->getFullActionName();
This would return for example for a product page
cms_index_index for homepage.
How can I do the same thing in Magento 2?
I need to get a page handle from within an observer. What should I inject in the constructor in order to be able to access it?