You are here

protected function EntityPagerSetup::setEntityInfo in Entity Pager 7

Set Entity Information.

This stores generic information about the Entity type. E.g. the entity is a 'node' and its main id field is 'nid'. It is required to make the module universal, so it can process entities as oppose to being hardcoded and only working for nodes.

Parameters

object $entity_info: Set the Entity info object.

1 call to EntityPagerSetup::setEntityInfo()
EntityPagerSetup::establishEntity in includes/EntityPagerSetup.inc
Establish Entity.

File

includes/EntityPagerSetup.inc, line 426
General setup base Class for Entity Pager module.

Class

EntityPagerSetup
Class EntityPagerSetup.

Code

protected function setEntityInfo($entity_info) {
  $this->entityInfo = $entity_info;
}