Get Attribute Key handle by ID

Permalink 1 user found helpful
I know this is something really simple but I can't figure it out looking at the docs.

How do I get an attribute key handle by the attribute ID?

I'd like to make a page list that filter by the attribute key handle, but right now I only have the key ID.

View Replies: View Best Answer
xtiandeocampo replied on at Permalink Best Answer Reply
xtiandeocampo
Have you tried this:
$akHandle = CollectionAttributeKey::getByID($akID)->getAttributeKeyHandle();


Where $akID is your attribute key id.