Same name in other branches
- 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 dans 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 dans src/
QuickSet.php - Constructor
Fichier
-
src/
QuickSet.php, line 93
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.
Namespace
Drupal\quicktabsCode
public static function getContentRenderer($tab) {
if ($tab['type'] == 'prerendered') {
return new QuickPreRenderedContent($tab);
}
if ($content = QuickContent::factory($tab['type'], $tab)) {
return $content;
}
return NULL;
}