Same name in other branches
- 7.x-3.x quicktabs.classes.inc \QuickSet::QuickSetRendererFactory()
Instantiate, populate and return a QuickSet object wrapped in a renderer.
Parameters
$name: The unique name (machine name) of the QuickSet instance.
$contents: The array of content items, each one itself an array with at least a 'type' key, a 'title' key, and the other info necessary for that type.
$renderer: The plugin key for this renderer plugin
$settings: An array of settings determining the behaviour of this QuickSet instance.
2 calls to QuickSet::QuickSetRendererFactory()
- QuickQtabsContent::render in src/
Plugin/ QuickContent/ QuickQtabsContent.php - Renders the content.
- quickset_renderer_factory in ./
quicktabs.module - Returns a renderered QuickSet.
File
-
src/
QuickSet.php, line 75
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\quicktabsCode
public static function QuickSetRendererFactory($name, $contents, $renderer, $settings) {
ctools_include('plugins');
$class = ctools_plugin_load_class('quicktabs', 'renderers', $renderer, 'handler');
if ($class) {
try {
$qs = new self($name, $contents, $settings);
} catch (InvalidQuickSetException $e) {
watchdog('Quicktabs', $e->getMessage());
return NULL;
}
return new $class($qs);
}
}