public function QtabsContent::render in Quick Tabs 8.3
Return a render array for an individual tab tat the theme layer to process.
Return value
string @todo test if changing type to array works
Overrides TabTypeBase::render
File
- src/
Plugin/ TabType/ QtabsContent.php, line 46
Class
- QtabsContent
- Provides a 'qtabs content' tab type.
Namespace
Drupal\quicktabs\Plugin\TabTypeCode
public function render(array $tab) {
$options = $tab['content'][$tab['type']]['options'];
$qt = \Drupal::service('entity_type.manager')
->getStorage('quicktabs_instance')
->load($options['machine_name']);
return $qt
->getRenderArray();
}