Deprecation: #110086 - TcaSchemaCapability::RestrictionWebMount
See forge#110086
Description
The enum case
\TYPO3\
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, 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\
carries the same value and the name states what it means.
Impact
Using
Tca 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
Tca, for example in calls to
Tca or
Tca, are
affected.
The extension scanner will report any usage as a strong match.
Migration
Replace
Tca with
Tca. The returned value is
identical, so no inversion of the surrounding condition is needed.
$ignoreWebMountRestriction = $schema->hasCapability(TcaSchemaCapability::RestrictionWebMount);
$ignoreWebMountRestriction = $schema->hasCapability(TcaSchemaCapability::IgnoreWebMountRestriction);