Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HTML.php

function HTML::generate

Generates the documentation for a standard.

Return value

void

Overrides Generator::generate

See also

processSniff()

File

vendor/squizlabs/php_codesniffer/src/Generators/HTML.php, line 104

Class

HTML

Namespace

PHP_CodeSniffer\Generators

Code

public function generate() {
    ob_start();
    $this->printHeader();
    $this->printToc();
    foreach ($this->docFiles as $file) {
        $doc = new DOMDocument();
        $doc->load($file);
        $documentation = $doc->getElementsByTagName('documentation')
            ->item(0);
        $this->processSniff($documentation);
    }
    $this->printFooter();
    $content = ob_get_contents();
    ob_end_clean();
    echo $content;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal