public function QuickTabsInstance::getRenderArray in Quick Tabs 8.3
Returns a render array to be used in a block or page.
Return value
array A render array.
File
- src/
Entity/ QuickTabsInstance.php, line 156
Class
- QuickTabsInstance
- Defines the QuickTabsInstance entity.
Namespace
Drupal\quicktabs\EntityCode
public function getRenderArray() {
$type = \Drupal::service('plugin.manager.tab_renderer');
$renderer = $type
->createInstance($this
->getRenderer());
\Drupal::moduleHandler()
->alter('quicktabs_instance', $this);
return $renderer
->render($this);
}