Skip to content

Serialize certain endpoint attributes based on conditions #128

Closed Answered by Moongazer
Moongazer asked this question in Q&A
Discussion options

You must be logged in to vote

Amazing! Thank you VERY much for the fast and helpful answer, that works flawless 😊 The flexibility of this extension is really mind-blowing.

Here is the adapted solution for everyone using the newer versions:

  Vendor\MyExt\EventListener\AddFeUserGroupsToSerializationGroups:
    tags:
      - name: event.listener
        identifier: 'vendor-myext/AddFeUserGroupsToSerializationGroups'
<?php

namespace Vendor\MyExt\EventListener;

use SourceBroker\T3api\Event\AfterCreateContextForOperationEvent;
use TYPO3\CMS\Core\Utility\GeneralUtility;

class AddFeUserGroupsToSerializationGroups
{
    public function __invoke(AfterCreateContextForOperationEvent $createContextForOperationEvent): void
   …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kszymukowicz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants