---
title: "Deprecation: #85735 - Various method and property in DocumentTemplate"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-85735"
source: "Changelog/9.4/Deprecation-85735-MethodAndPropertyInDocumentTemplate.rst"
modified: "2026-09-15T10:46:36+00:00"
---

# Deprecation: #85735 - Various method and property in DocumentTemplate

See [forge#85735](https://forge.typo3.org/issues/85735)

## Description

The method `DocumentTemplate::addStyleSheet()` has been marked as deprecated.

The property `DocumentTemplate::hasDocheader` has been marked as protected as the property is not evaluated anymore in the core.

## Impact

Calling `DocumentTemplate::addStyleSheet()` will trigger a PHP `E_USER_DEPRECATED` error.

Using the property `DocumentTemplate::hasDocheader` will trigger a PHP `E_USER_DEPRECATED` error.

## Affected Installations

Instances with third party code directly accessing the method or the property.

## Migration

`DocumentTemplate::addStyleSheet()` can be replaced by using `PageRenderer::addCssFile()`.

The property has no migration available.
