You are here

abstract class Renderer in Site Audit 8.3

Class Renderer.

Hierarchy

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_audit
View 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

Namesort descending Modifiers Type Description Overrides
Renderer::$logger public property The logger we are using for output.
Renderer::$options public property Any options that have been passed in.
Renderer::$output public property Output interface. 1
Renderer::$report public property The Report to be rendered.
Renderer::render abstract public function 4
Renderer::__construct public function 2
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.