Same name and namespace in other branches
  1. 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 in ./quicktabs.module
Ajax callback for tab content.

File

src/QuickSet.php, line 107

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