You are here

function panels_get_renderer_handler in Panels 6.3

Same name and namespace in other branches
  1. 7.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.

9 calls to panels_get_renderer_handler()
panels_ajax_router in ./panels.module
Route Panels' AJAX calls to the correct object.
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.
panels_mini_ui::edit_form_content in panels_mini/plugins/export_ui/panels_mini_ui.class.php

... See full list

File

includes/plugins.inc, line 385
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, 'handler');
  if ($class) {
    $renderer = new $class();
    $renderer
      ->init($plugin, $display);
    return $renderer;
  }
  return FALSE;
}