Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
TYPO3: ['12', '13', '14']
TYPO3: ['13', '14']

steps:
- name: Checkout
Expand Down Expand Up @@ -42,11 +42,6 @@ jobs:
run: |
composer require typo3/cms-core:^13.4 --no-progress --no-interaction --dev -W

- name: Install composer dependencies TYPO3 12
if: matrix.TYPO3 == '12'
run: |
composer require typo3/cms-core:^12.4 --no-progress --no-interaction --dev -W

- name: Phpstan
run: .Build/bin/phpstan analyze -c Build/phpstan.neon

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
label: 'DeepL Translate'
custom_options:
deepltranslate:
- translateAllowed
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ settings:
clearCache: all
```

### Custom Options

```
custom_options:
deepltranslate:
- translateAllowed
```

## ToDo

* Extensive tests
Expand Down
11 changes: 11 additions & 0 deletions Tests/Functional/AttachPermissionsToGroupsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,15 @@ public function tcemainClearCacheCmd(): void
self::assertStringContainsString('TCEMAIN.clearCacheCmd = all', $modGroup['TSconfig']);
}

#[Test]
public function customOptions(): void
{
$group = $this->emptyGroup;
$group['permission_sets'] = 'b13/permission-sets-examples/custom-options';
$event = new AfterGroupsResolvedEvent('be_groups', [$group], [1], []);
$attachPermissionsToGroups = GeneralUtility::makeInstance(AttachPermissionsToGroups::class);
$attachPermissionsToGroups($event);
$modGroup = $event->getGroups()[0];
self::assertStringContainsString('deepltranslate:translateAllowed', $modGroup['custom_options']);
}
}
Loading