abstract class Renderer in Site Audit 8.3
Class Renderer.
Hierarchy
- class \Drupal\site_audit\Renderer uses StringTranslationTrait
Expanded class hierarchy of Renderer
4 files declare their use of Renderer
- Console.php in src/
Renderer/ Console.php - Html.php in src/
Renderer/ Html.php - Json.php in src/
Renderer/ Json.php - Markdown.php in src/
Renderer/ Markdown.php
File
- src/
Renderer.php, line 10
Namespace
Drupal\site_auditView source
abstract class Renderer {
use StringTranslationTrait;
/**
* The Report to be rendered.
*
* @var \Drupal\site_audit\Report
*/
public $report;
/**
* The logger we are using for output.
*/
public $logger;
/**
* Any options that have been passed in.
*/
public $options;
/**
* Output interface.
*/
public $output;
/**
*
*/
public function __construct($report, $logger, $options, $output) {
$this->report = $report;
$this->logger = $logger;
$this->options = $options;
$this->output = $output;
}
/**
*
*/
public abstract function render($detail = FALSE);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Renderer:: |
public | property | The logger we are using for output. | |
Renderer:: |
public | property | Any options that have been passed in. | |
Renderer:: |
public | property | Output interface. | 1 |
Renderer:: |
public | property | The Report to be rendered. | |
Renderer:: |
abstract public | function | 4 | |
Renderer:: |
public | function | 2 | |
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |