Same name in other branches
  1. 7.x-3.x quicktabs.classes.inc \QuickRenderer

Abstract base class for QuickSet Renderers.

A renderer object contains a reference to a QuickSet object, which it can then render.

Hierarchy

Expanded class hierarchy of QuickRenderer

3 files declare their use of QuickRenderer
QuickAccordion.php in src/Plugin/QuickRender/QuickAccordion.php
Contains \Drupal\quicktabs\Plugin\QuickRender\QuickAccordian.php
QuickQuicktabs.php in src/Plugin/QuickRender/QuickQuicktabs.php
Contains \Drupal\quicktabs\Plugin\QuickRender\QuickQuicktabs.php
QuickUiTabs.php in src/Plugin/QuickRender/QuickUiTabs.php
Contains \Drupal\quicktabs\Plugin\QuickRender\QuickUiTabs.php

File

src/QuickRenderer.php, line 12

Namespace

Drupal\quicktabs
View source
abstract class QuickRenderer {
    
    /**
     * @var QuickSet
     */
    protected $quickset;
    
    /**
     * Constructor
     */
    public function __construct($quickset) {
        $this->quickset = $quickset;
    }
    
    /**
     * Accessor method for the title.
     */
    public function getTitle() {
        return $this->quickset
            ->getTitle();
    }
    
    /**
     * The only method that renderer plugins must implement.
     *
     * @return array A render array to be passed to drupal_render().
     */
    public abstract function render();
    
    /**
     * Method for returning the form elements to display for this renderer type on
     * the admin form.
     * @param $qt \Drupal\quicktabs\QuickSet object representing the Quicktabs instance that the tabs are
     * being built for.
     *
     * @return array
     */
    public static function optionsForm($qt) {
        return array();
    }

}

Members

Title Sort descending Modifiers Object type Summary Overrides
QuickRenderer::$quickset protected property
QuickRenderer::getTitle public function Accessor method for the title.
QuickRenderer::optionsForm public static function Method for returning the form elements to display for this renderer type on
the admin form.
2
QuickRenderer::render abstract public function The only method that renderer plugins must implement. 3
QuickRenderer::__construct public function Constructor