I've been building a module in which I need to know if a page has a unique layout.
My first thought was to get the list of layout handles and hash them. This works well for the most part, but doesn't take into account database layout updates.
My second thought was to hash the entire layout updates and use that. In principle, this works, but I think perhaps I am using the wrong function:
This seems to get the same thing on every request. How do I just get the updates applied on a specific request? Is there a convenient function for that?
Or, is there a way to just get db updates? Something like
md5(implode($update->getHandles()) . $update->getAllDbLayoutUpdates());
would also be swell.
Looking at it from a different angle, is there such a method created already? Have I been looking at it all wrong?