Same filename and directory in other branches
  1. 8.x-3.x src/TabTypeBase.php 1 comment

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

Title Deprecated Summary
TabTypeBase Base implementation for plugins that add tabbed output.