You are here

function panels_get_renderer_handler in Panels 7.3

Same name and namespace in other branches
  1. 6.3 includes/plugins.inc \panels_get_renderer_handler()

Get and initialize the class to handle rendering a display.

Return value

Either the instantiated renderer or FALSE if one could not be found.

11 calls to panels_get_renderer_handler()
panels_ajax_router in ./panels.module
Route Panels' AJAX calls to the correct object.
panels_change_layout in includes/display-layout.inc
Form definition for the display layout converter.
panels_display::render in ./panels.module
Render this panels display.
panels_get_renderer in includes/plugins.inc
Choose a renderer for a display based on a render pipeline setting.
panels_layouts_ui::edit_form in plugins/export_ui/panels_layouts_ui.class.php
Provide the actual editing form.

... See full list

File

includes/plugins.inc, line 396
Contains helper code for plugins and contexts.

Code

function panels_get_renderer_handler($plugin, &$display) {
  if (is_string($plugin)) {
    $plugin = panels_get_display_renderer($plugin);
  }
  $class = ctools_plugin_get_class($plugin, 'renderer');
  if ($class) {
    $renderer = new $class();
    $renderer
      ->init($plugin, $display);
    return $renderer;
  }
  return FALSE;
}