Same name and namespace in other branches
  1. 8.x-1.x src/QuickSet.php \Drupal\quicktabs\QuickSet::getContentRenderer()

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;
}