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

Breadcrumb

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

function Response::setCharset

Sets the response charset.

@final

Return value

$this

1 call to Response::setCharset()
SecuredRedirectResponse::fromResponse in core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php
Copies over the values from the given response.

File

vendor/symfony/http-foundation/Response.php, line 504

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function setCharset(string $charset) : static {
    $this->charset = $charset;
    return $this;
}
RSS feed
Powered by Drupal