Get ID of page attribute

Permalink
Hi

Somebody knows how to get the ID of a page attribute itself by it's handle (blog_category)?

 
Kiesel replied on at Permalink Best Answer Reply
Found it:

$ak_t = CollectionAttributeKey::getByHandle('blog_category');
echo $ak_t->getAttributeKeyID();