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

Breadcrumb

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

function Environment::setCharset

1 call to Environment::setCharset()
Environment::__construct in vendor/twig/twig/src/Environment.php
Constructor.

File

vendor/twig/twig/src/Environment.php, line 586

Class

Environment
Stores the Twig configuration and renders templates.

Namespace

Twig

Code

public function setCharset(string $charset) {
    if ('UTF8' === ($charset = strtoupper($charset ?: ''))) {
        // iconv on Windows requires "UTF-8" instead of "UTF8"
        $charset = 'UTF-8';
    }
    $this->charset = $charset;
}

API Navigation

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