---
title: "Deprecation: #104764 - Fluid TemplatePaths->fillDefaultsByPackageName"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-104764-1724851918"
source: "Changelog/13.3/Deprecation-104764-FluidTemplatePaths-fillDefaultsByPackageName.rst"
typo3-version: "13.3"
typo3-major: 13
type: "deprecation"
issue: 104764
forge: "https://forge.typo3.org/issues/104764"
tags: ["PHP-API", "FullyScanned", "ext:fluid"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Deprecation: #104764 - Fluid TemplatePaths->fillDefaultsByPackageName {#deprecation-104764-1724851918}

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

## Description {#description}

Method `\TYPO3\CMS\Fluid\View\TemplatePaths->fillDefaultsByPackageName()`
has been marked as deprecated in TYPO3 v13 and will be removed in TYPO3 v14.

Fluid template paths should be set directly using the methods
`setTemplateRootPaths()`, `setLayoutRootPaths()` and
`setPartialRootPaths()`, or - even better - be handled by
`ViewFactoryInterface`, which comes as new feature in TYPO3 v13.

See [Feature: #104773 - Generic view factory](https://docs.typo3.org/permalink/changelog:feature-104773-1724939348) for more details of the generic
view interface.

## Impact {#impact}

Calling `fillDefaultsByPackageName()` triggers a deprecation level
log level entry in TYPO3 v13 and will be removed in TYPO3 v14.

## Affected installations {#affected-installations}

The method is relatively rarely used by extensions directly, a usage in
Extbase `ActionController` has been refactored away. The extension
scanner will find candidates.

Note class `TemplatePaths` is marked `@internal` and should not be
used by extensions at all.

## Migration {#migration}

Use `\TYPO3\CMS\Core\View\ViewFactoryInterface` to create views with
proper template paths instead. The TYPO3 system extensions come with plenty
of examples on how to do this.
