You are here

interface TabTypeInterface in Quick Tabs 8.3

Defines an interface for tab type plugins.

Hierarchy

Expanded class hierarchy of TabTypeInterface

All classes that implement TabTypeInterface

File

src/TabTypeInterface.php, line 10

Namespace

Drupal\quicktabs
View source
interface TabTypeInterface extends PluginInspectionInterface {

  /**
   * Return form elements used on the edit/add from.
   *
   * @param array $tab
   *   The array tab for display.
   *
   * @return array
   *   The options used for displaying tabs.
   */
  public function optionsForm(array $tab);

  /**
   * Return a render array for an individual tab tat the theme layer to process.
   *
   * @return string
   *   @todo test if changing type to array works
   */
  public function render(array $tab);

}

Members

Namesort descending Modifiers Type Description Overrides
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2
TabTypeInterface::optionsForm public function Return form elements used on the edit/add from. 1
TabTypeInterface::render public function Return a render array for an individual tab tat the theme layer to process. 1