---
title: "Deprecation: #92583 - 3 last arguments of wrapClickMenuOnIcon()"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-92583"
source: "Changelog/11.0/Deprecation-92583-DeprecateLastArgumentsOfWrapClickMenuOnIcon.rst"
typo3-version: "11.0"
typo3-major: 11
type: "deprecation"
issue: 92583
forge: "https://forge.typo3.org/issues/92583"
tags: ["Backend", "FullyScanned", "ext:backend"]
rendered: "2026-09-24T21:45:06+00:00"
---

# Deprecation: #92583 - 3 last arguments of wrapClickMenuOnIcon() {#deprecation-92583}

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

## Description {#description}

`BackendUtility::wrapClickMenuOnIcon()` has a boolean flag to let the method
return an array with tag parameters instead of a fully build HTML tag as string.
As this are two completely different things and cause problems when analysing
return types it should not be done in the same method.

Calling `BackendUtility::wrapClickMenuOnIcon()` with the 7th and last argument
`$returnTagParameters` set to `true` has been marked as deprecated alongside the 5th
and 6th arguments that are already unused.

A new method has been introduced that returns the aforementioned array.

## Impact {#impact}

Calling `BackendUtility::wrapClickMenuOnIcon()` with more than 4 arguments
will trigger a PHP `E_USER_DEPRECATED` error.

## Affected Installations {#affected-installations}

All 3rd party extensions calling `BackendUtility::wrapClickMenuOnIcon()` with more
than 4 arguments are affected.

## Migration {#migration}

Arguments 5 and 6 can be safely removed as they are already unused.

If `$returnTagParameters` was set to `true` the newly introduced method
`BackendUtility::getClickMenuOnIconTagParameters()` should be called to
retrieve the array with the tag parameters.

## Example {#example}

```php
$parameters = BackendUtility::getClickMenuOnIconTagParameters($tableName, $uid, 'tree');
```
