Same name in other branches
- 7.x-3.x quicktabs.classes.inc \QuickSet::ajaxRenderContent()
Static method to retrieve content from an ajax call. This is called by the quicktabs_ajax() callback in quicktabs.module.
1 call to QuickSet::ajaxRenderContent()
- quicktabs_ajax dans ./
quicktabs.module - Ajax callback for tab content.
Fichier
-
src/
QuickSet.php, line 107
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 ajaxRenderContent($type, $args) {
if ($renderer = self::getContentRenderer(array(
'type' => $type,
))) {
$output = $renderer->render(FALSE, $args);
return !empty($output) ? drupal_render($output) : '';
}
return '';
}