Skip to content

Commit

Permalink
Edit documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-alghi committed Nov 1, 2023
1 parent ee339db commit 0de19e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Documentation/Development/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


====
Develompment
Development
====

The extension adds four custom enable fields:
Expand Down
4 changes: 2 additions & 2 deletions Documentation/Development/_removeRestrictionQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

// ...
Expand Down

0 comments on commit 0de19e6

Please sign in to comment.