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

Breadcrumb

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

function OutputRules::nl

Write a new line character.

Return value

$this

2 calls to OutputRules::nl()
OutputRules::doctype in vendor/masterminds/html5/src/HTML5/Serializer/OutputRules.php
OutputRules::document in vendor/masterminds/html5/src/HTML5/Serializer/OutputRules.php
Write a document element (\DOMDocument).

File

vendor/masterminds/html5/src/HTML5/Serializer/OutputRules.php, line 461

Class

OutputRules
Generate the output html5 based on element rules.

Namespace

Masterminds\HTML5\Serializer

Code

protected function nl() {
    fwrite($this->out, PHP_EOL);
    return $this;
}

API Navigation

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