Same name and namespace in other branches
  1. 8.x-3.x src/TabTypeInterface.php \Drupal\quicktabs\TabTypeInterface 1 comment

Defines an interface for tab type plugins.

Hierarchy

  • interface \Drupal\quicktabs\TabTypeInterface extends \Drupal\Component\Plugin\PluginInspectionInterface

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

Title Sort descending Modifiers Object type Summary Overrides
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