‪TYPO3CMS  10.4
TYPO3\CMS\Core\Database\Query\Restriction\EnforceableQueryRestrictionInterface Interface Reference

Public Member Functions

bool isEnforced ()
 

Detailed Description

Can be added to QueryRestrictionInterface implementations. Restrictions implementing this interface will not be removed when removeAll() is called on the container and isEnforced() returns true. It can be removed though, when explicitly calling removeByType()

Definition at line 26 of file EnforceableQueryRestrictionInterface.php.

Member Function Documentation

◆ isEnforced()

bool TYPO3\CMS\Core\Database\Query\Restriction\EnforceableQueryRestrictionInterface::isEnforced ( )

When returning false, restriction will be removed when removeAll() is called on the container

Returns
‪bool