Same name in other branches
- 8.x-1.x src/QuickSet.php \Drupal\quicktabs\QuickSet::QuickSetRendererFactory()
Instantiate, populate and return a QuickSet object wrapped in a renderer.
Paramètres
$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 dans plugins/
QuickQtabsContent.inc - Renders the content.
- quickset_renderer_factory dans ./
quicktabs.module - Returns a renderered QuickSet.
Fichier
-
./
quicktabs.classes.inc, line 71
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.
Code
public static function QuickSetRendererFactory($name, $contents, $renderer, $settings) {
ctools_include('plugins');
if ($class = ctools_plugin_load_class('quicktabs', 'renderers', $renderer, 'handler')) {
try {
$qs = new self($name, $contents, $settings);
} catch (InvalidQuickSetException $e) {
watchdog('Quicktabs', $e->getMessage());
return NULL;
}
return new $class($qs);
}
}