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

Breadcrumb

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

function AbstractSurrogate::__construct

Parameters

array $contentTypes An array of content-type that should be parsed for Surrogate information: (default: text/html, text/xml, application/xhtml+xml, and application/xml)

File

vendor/symfony/http-kernel/HttpCache/AbstractSurrogate.php, line 30

Class

AbstractSurrogate
Abstract class implementing Surrogate capabilities to Request and Response instances.

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

public function __construct(array $contentTypes = [
    'text/html',
    'text/xml',
    'application/xhtml+xml',
    'application/xml',
]) {
}

API Navigation

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