Function Hook_addon_registry_polls->_tpl_preview_poll

Definitions

sources/hooks/systems/addon_registry/polls.php

  • Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declarative.Assumptions: You can assume all Lang/CSS/JavaScript files in this addon have been pre-required.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$section string No No Blank (empty string) N/A N/A View type

Returns

  • Preview
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get a preview(s) of a (group of) template(s), as a full standalone piece of HTML in Tempcode format.Uses sources/lorem.php functions to place appropriate stock-text. Should not hard-code things, as the code is intended to be declarative.Assumptions: You can assume all Lang/CSS/JavaScript files in this addon have been pre-required.
 *
 * @param  string $section View type
 * @return Tempcode Preview
 */

protected function _tpl_preview_poll(string $section = '') : object