You are here

abstract class TabTypeBase in Quick Tabs 8.3

Base implementation for plugins that add tabbed output.

Hierarchy

Expanded class hierarchy of TabTypeBase

4 files declare their use of TabTypeBase
BlockContent.php in src/Plugin/TabType/BlockContent.php
NodeContent.php in src/Plugin/TabType/NodeContent.php
QtabsContent.php in src/Plugin/TabType/QtabsContent.php
ViewContent.php in src/Plugin/TabType/ViewContent.php

File

src/TabTypeBase.php, line 11

Namespace

Drupal\quicktabs
View source
abstract class TabTypeBase extends PluginBase implements TabTypeInterface {
  use DependencySerializationTrait;

  /**
   * Gets the name of the plugin.
   */
  protected function getName() {
    return $this->pluginDefinition['name'];
  }

  /**
   * {@inheritdoc}
   */
  public abstract function optionsForm(array $tab);

  /**
   * {@inheritdoc}
   */
  public abstract function render(array $tab);

}

Members

Namesort descending Modifiers Type Description Overrides
DependencySerializationTrait::$_entityStorages protected property An array of entity type IDs keyed by the property name of their storages.
DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization.
DependencySerializationTrait::__sleep public function 1
DependencySerializationTrait::__wakeup public function 2
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
TabTypeBase::getName protected function Gets the name of the plugin.
TabTypeBase::optionsForm abstract public function Return form elements used on the edit/add from. Overrides TabTypeInterface::optionsForm 4
TabTypeBase::render abstract public function Return a render array for an individual tab tat the theme layer to process. Overrides TabTypeInterface::render 4