You are here

TabTypeBase.php in Quick Tabs 8.3

Namespace

Drupal\quicktabs

File

src/TabTypeBase.php
View source
<?php

namespace Drupal\quicktabs;

use Drupal\Component\Plugin\PluginBase;
use Drupal\Core\DependencyInjection\DependencySerializationTrait;

/**
 * Base implementation for plugins that add tabbed output.
 */
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);

}

Classes

Namesort descending Description
TabTypeBase Base implementation for plugins that add tabbed output.