Same name in other branches
- 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 dans ./
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 dans ./
quicktabs.classes.inc - Constructor
Fichier
-
./
quicktabs.classes.inc, line 89
Classe
- 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;
}