You are here

abstract class TabRendererBase in Quick Tabs 8.3

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

Namesort descending Modifiers Type Description Overrides
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 3
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.
PluginBase::__construct public function Constructs a \Drupal\Component\Plugin\PluginBase object. 92
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