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

Namespace

Drupal\quicktabs

Fichier

src/TabRendererInterface.php

View source
<?php

namespace Drupal\quicktabs;

use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\quicktabs\Entity\QuickTabsInstance;

/**
 * Defines an interface for tab renderer plugins.
 */
interface TabRendererInterface extends PluginInspectionInterface {
    
    /**
     * Return form elements used on the edit/add from.
     *
     * @return array
     *   The options used for displaying tabs.
     */
    public function optionsForm(QuickTabsInstance $instance);
    
    /**
     * Return a render array for the whole Quick Tabs instance.
     *
     * @return array
     *   A render array.
     */
    public function render(QuickTabsInstance $instance);

}

Interfaces

Titre Deprecated Résumé
TabRendererInterface Defines an interface for tab renderer plugins.