Deprecation: #110086 - TcaSchemaCapability::RestrictionWebMount 

See forge#110086

Description 

The enum case \TYPO3\CMS\Core\Schema\Capability\TcaSchemaCapability::RestrictionWebMount has been marked as deprecated and will be removed in TYPO3 v16.0.

Despite its name, the case never represented a restriction. It was meant to be the inversion of TCA[ctrl][security][ignoreWebMountRestriction] , but it has always behaved exactly like that option: it is true for tables that ignore the web mount restriction.

The new enum case \TYPO3\CMS\Core\Schema\Capability\TcaSchemaCapability::IgnoreWebMountRestriction carries the same value and the name states what it means.

Impact 

Using TcaSchemaCapability::RestrictionWebMount continues to work and returns the same value as before. The case will be removed in TYPO3 v16.0.

Affected installations 

TYPO3 installations with custom extensions or code that use TcaSchemaCapability::RestrictionWebMount , for example in calls to TcaSchema->hasCapability() or TcaSchema->getCapability() , are affected.

The extension scanner will report any usage as a strong match.

Migration 

Replace TcaSchemaCapability::RestrictionWebMount with TcaSchemaCapability::IgnoreWebMountRestriction . The returned value is identical, so no inversion of the surrounding condition is needed.

Before (deprecated)
$ignoreWebMountRestriction = $schema->hasCapability(TcaSchemaCapability::RestrictionWebMount);
Copied!
After (recommended)
$ignoreWebMountRestriction = $schema->hasCapability(TcaSchemaCapability::IgnoreWebMountRestriction);
Copied!