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

Namespace

Drupal\quicktabs

Fichier

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

Titre Deprecated Résumé
TabTypeBase Base implementation for plugins that add tabbed output.