Same name and namespace in other branches
- 8.x-3.x src/TabTypeBase.php \Drupal\quicktabs\TabTypeBase 1 comment
Base implementation for plugins that add tabbed output.
Hierarchy
- class \Drupal\quicktabs\TabTypeBase extends \Drupal\Component\Plugin\PluginBase implements \Drupal\quicktabs\TabTypeInterface uses \Drupal\Core\DependencyInjection\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
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
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 |