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

Breadcrumb

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

function OutputRules::__construct

Overrides RulesInterface::__construct

File

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

Class

OutputRules
Generate the output html5 based on element rules.

Namespace

Masterminds\HTML5\Serializer

Code

public function __construct($output, $options = array()) {
    if (isset($options['encode_entities'])) {
        $this->encode = $options['encode_entities'];
    }
    $this->outputMode = static::IM_IN_HTML;
    $this->out = $output;
    $this->hasHTML5 = defined('ENT_HTML5');
}

API Navigation

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