You are here

public static function QuickSet::getContentRenderer in Quick Tabs 7.3

Returns a reference to an object that implements the QuickContentRenderable interface.

2 calls to QuickSet::getContentRenderer()
QuickSet::ajaxRenderContent in ./quicktabs.classes.inc
Static method to retrieve content from an ajax call. This is called by the quicktabs_ajax() callback in quicktabs.module.
QuickSet::__construct in ./quicktabs.classes.inc
Constructor

File

./quicktabs.classes.inc, line 89

Class

QuickSet
A QuickSet object is an unrendered Quicktabs instance, essentially just a container of content items, as defined by its configuration settings and the array of content items it contains.

Code

public static function getContentRenderer($tab) {
  if ($tab['type'] == 'prerendered') {
    return new QuickPreRenderedContent($tab);
  }
  if ($content = QuickContent::factory($tab['type'], $tab)) {
    return $content;
  }
  return NULL;
}