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

Breadcrumb

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

function HTML::printHeader

Print the header of the HTML page.

Return value

void

1 call to HTML::printHeader()
HTML::generate in vendor/squizlabs/php_codesniffer/src/Generators/HTML.php
Generates the documentation for a standard.

File

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

Class

HTML

Namespace

PHP_CodeSniffer\Generators

Code

protected function printHeader() {
    $standard = $this->ruleset->name;
    echo '<html>' . PHP_EOL;
    echo ' <head>' . PHP_EOL;
    echo "  <title>{$standard} Coding Standards</title>" . PHP_EOL;
    echo '  ' . str_replace("\n", PHP_EOL, self::STYLESHEET) . PHP_EOL;
    echo ' </head>' . PHP_EOL;
    echo ' <body>' . PHP_EOL;
    echo "  <h1>{$standard} Coding Standards</h1>" . PHP_EOL;
}

API Navigation

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