function entity_get_controller

cis7 entity_get_controller($entity_type)
cle7 entity_get_controller($entity_type)
elmsmedia7 entity_get_controller($entity_type)
icor7 entity_get_controller($entity_type)
meedjum_blog7 entity_get_controller($entity_type)
mooc7 entity_get_controller($entity_type)

Get the entity controller class for an entity type.

54 calls to entity_get_controller()
accessibility_test_save in sites/all/modules/ulmus/accessibility/accessibility.module
Saves an accessibility test entity.
display_cache_view_entity in sites/all/modules/ulmus/display_cache/display_cache.module
Alternative entity view callback.
Entity::buildContent in sites/all/modules/ulmus/entity/includes/
Builds a structured array representing the entity's content.
Entity::delete in sites/all/modules/ulmus/entity/includes/
Permanently deletes the entity.
Entity::export in sites/all/modules/ulmus/entity/includes/
Exports the entity.

... See full list


includes/, line 7832
Common functions that many Drupal modules will need to reference.


function entity_get_controller($entity_type) {
  $controllers = &drupal_static(__FUNCTION__, array());
  if (!isset($controllers[$entity_type])) {
    $type_info = entity_get_info($entity_type);
    $class = $type_info['controller class'];
    $controllers[$entity_type] = new $class($entity_type);
  return $controllers[$entity_type];



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.