Same name and namespace in other branches
  1. 8.x-3.x src/TabRendererBase.php \Drupal\quicktabs\TabRendererBase 1 comment

Base implementation for plugins that render tabbed output.

Hierarchy

Expanded class hierarchy of TabRendererBase

3 files declare their use of TabRendererBase
AccordionTabs.php in quicktabs_accordion/src/Plugin/TabRenderer/AccordionTabs.php
QuickTabs.php in src/Plugin/TabRenderer/QuickTabs.php
UiTabs.php in quicktabs_jqueryui/src/Plugin/TabRenderer/UiTabs.php

File

src/TabRendererBase.php, line 11

Namespace

Drupal\quicktabs
View source
abstract class TabRendererBase extends PluginBase implements TabRendererInterface {
    
    /**
     * Gets the name of the plugin.
     */
    public function getName() {
        return $this->pluginDefinition['name'];
    }
    
    /**
     * {@inheritdoc}
     */
    public function optionsForm(QuickTabsInstance $instance) {
        return [];
    }
    
    /**
     * {@inheritdoc}
     */
    public abstract function render(QuickTabsInstance $instance);

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
TabRendererBase::getName public function Gets the name of the plugin.
TabRendererBase::optionsForm public function Return form elements used on the edit/add from. Overrides TabRendererInterface::optionsForm 2
TabRendererBase::render abstract public function Return a render array for the whole Quick Tabs instance. Overrides TabRendererInterface::render 3