Same name in other branches
- 8.x-1.x src/QuickRenderer.php \Drupal\quicktabs\QuickRenderer
Abstract base class for QuickSet Renderers.
A renderer object contains a reference to a QuickSet object, which it can then render.
Hierarchy
- class \QuickRenderer
Expanded class hierarchy of QuickRenderer
Fichier
-
./
quicktabs.classes.inc, line 271
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 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 An object representing the Quicktabs instance that the tabs are
* being built for.
*/
public static function optionsForm($qt) {
return array();
}
}
Members
Titre Trier par ordre décroissant | Modifiers | Object type | Résumé | 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 |