---
title: "Breaking: #644 - Remove hard dependency to EXT:form"
manual: "Cart"
version: "12.1"
permalink: "https://docs.typo3.org/permalink/extcode/cart:breaking-644-remove-hard-dependency-to-ext-form@12.1"
source: "Changelog/11.3/Breaking-644-RemoveHardDependencyToExtForm.rst"
rendered: "2026-11-14T23:50:30+00:00"
---

# Breaking: #644 - Remove hard dependency to EXT:form {#breaking-644-remove-hard-dependency-to-ext-form}

See [Issue 644](https://github.com/extcode/cart/issues/644)

## Description {#description}

`extcode/cart` itself doesn't need any code from `typo3/cms-form`.

This extension provide an itemProcFunc to provide a list of the form definition
for a selector filtered by a given prototype.
This extension provide an AddToCartFinisher which extends the AbstractFinisher
of `typo3/cms-form`.

Both classes can be used by product extensions, but are not used by `extcode/cart`
itself.

To achieve this, the part concerning the form definitions had to be moved to a
separate class `ExtcodeCartHooksFormDefinitions`.

## Affected Installations {#affected-installations}

Own product extensions that link products with form_definitions and have used
the itemProcFunc ‘Extcode\\Cart\\Hooks\\ItemsProcFunc->user_formDefinition’ in
the TCA.

## Migration {#migration}

Replace

```php
'itemsProcFunc' => 'Extcode\\Cart\\Hooks\\ItemsProcFunc->user_formDefinition',
'itemsProcFuncConfig' => [
    'prototypeName' => 'cart-events',
],
```

with

```php
'itemsProcFunc' => \\Extcode\\Cart\\Hooks\\FormDefinitions::class . '->getItems',
'itemsProcFuncConfig' => [
    'prototypeName' => 'cart-events',
],
```
