From 0de19e610c459479cb4f173f6c3ca1d80ad4817b Mon Sep 17 00:00:00 2001 From: Davide Alghi Date: Wed, 1 Nov 2023 08:46:14 +0100 Subject: [PATCH] Edit documentation --- Documentation/Development/Index.rst | 2 +- Documentation/Development/_removeRestrictionQueryBuilder.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/Development/Index.rst b/Documentation/Development/Index.rst index 0a1cf4b..ed5e8dd 100644 --- a/Documentation/Development/Index.rst +++ b/Documentation/Development/Index.rst @@ -5,7 +5,7 @@ ==== -Develompment +Development ==== The extension adds four custom enable fields: diff --git a/Documentation/Development/_removeRestrictionQueryBuilder.php b/Documentation/Development/_removeRestrictionQueryBuilder.php index 07d9066..cecaf28 100644 --- a/Documentation/Development/_removeRestrictionQueryBuilder.php +++ b/Documentation/Development/_removeRestrictionQueryBuilder.php @@ -11,13 +11,13 @@ class MyClass { // ... - + public function myFunction(): void { // ... $connection = GeneralUtility::makeInstance(ConnectionPool::class); - $queryBuilder = $connection->getQueryBuilderForTable('my_table'); + $queryBuilder = $connection->getQueryBuilderForTable('tt_content'); $queryBuilder->getRestrictions()->removeByType(CookieRestriction::class); // ...