You are here

public static function EntityCacheControllerHelper::entityCacheFilterId in Entity cache 7

Callback for array_filter that removes non-integer IDs.

File

includes/entitycache.entitycachecontrollerhelper.inc, line 228
EntityCacheControllerHelper cache helper.

Class

EntityCacheControllerHelper
Entity cache helper.

Code

public static function entityCacheFilterId($id) {
  return is_numeric($id) && $id == (int) $id;
}