Same name in other branches
  1. 7.x-3.x quicktabs.classes.inc \QuickSet::getContentRenderer()

Returns a reference to an object that implements the QuickContentRenderableInterface.

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

File

src/QuickSet.php, line 93

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.

Namespace

Drupal\quicktabs

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