You are here

function references_dialog_plugin_display::get_entity_type in References dialog 7

1 call to references_dialog_plugin_display::get_entity_type()
references_dialog_plugin_display::render in views/references_dialog_plugin_display.inc
Render this display.

File

views/references_dialog_plugin_display.inc, line 47
Contains the default display plugin.

Class

references_dialog_plugin_display
A plugin to handle defaults on a view.

Code

function get_entity_type() {

  // Find the entity that matches our base table.
  $entities = entity_get_info();
  foreach ($entities as $entity_type => $entity_info) {
    if ($entity_info['base table'] == $this->view->base_table) {
      return $entity_type;
    }
  }
}