abstract class TabTypeBase in Quick Tabs 8.3
Base implementation for plugins that add tabbed output.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\quicktabs\TabTypeBase implements TabTypeInterface uses DependencySerializationTrait
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\quicktabsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DependencySerializationTrait:: |
protected | property | An array of entity type IDs keyed by the property name of their storages. | |
DependencySerializationTrait:: |
protected | property | An array of service IDs keyed by property name used for serialization. | |
DependencySerializationTrait:: |
public | function | 1 | |
DependencySerializationTrait:: |
public | function | 2 | |
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PluginBase:: |
public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 92 |
TabTypeBase:: |
protected | function | Gets the name of the plugin. | |
TabTypeBase:: |
abstract public | function |
Return form elements used on the edit/add from. Overrides TabTypeInterface:: |
4 |
TabTypeBase:: |
abstract public | function |
Return a render array for an individual tab tat the theme layer to process. Overrides TabTypeInterface:: |
4 |