Same name in other branches
  1. 8.x-1.x src/QuickSet.php \Drupal\quicktabs\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 in ./quicktabs.module
Ajax callback for tab content.

File

./quicktabs.classes.inc, line 103

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 ajaxRenderContent($type, $args) {
    if ($renderer = self::getContentRenderer(array(
        'type' => $type,
    ))) {
        $output = $renderer->render(FALSE, $args);
        return !empty($output) ? drupal_render($output) : '';
    }
    return '';
}