Same name in other branches
  1. 8.x-3.x src/Entity/QuickTabsInstance.php \Drupal\quicktabs\Entity\QuickTabsInstance::getRenderArray()

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\Entity

Code

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);
}