protected function EntityPagerSetup::getEntityKeys in Entity Pager 7
Get Entity Keys.
Get the key ID fields of each entity type on the site. E.g. node = nid user = uid etc.
Return value
array Get an array of the id fields used for each Entity on the site.
1 call to EntityPagerSetup::getEntityKeys()
- EntityPagerSetup::establishEntityInfo in includes/
EntityPagerSetup.inc - Establish the Entity Info from the View.
File
- includes/
EntityPagerSetup.inc, line 405 - General setup base Class for Entity Pager module.
Class
- EntityPagerSetup
- Class EntityPagerSetup.
Code
protected function getEntityKeys() {
$entity_keys = array();
$entities = entity_get_info();
foreach ($entities as $key => $value) {
$entity_keys[$key] = $value['entity keys']['id'];
}
return $entity_keys;
}