src/Forms/Resources/Transformers/FormTransformer.php
public function includeGroups(FieldTypeInterface $form)
    {
        /** @var FieldTypeInterface|FormInterface $form */
        return $this->collection(
            $form->repository()->getGroups(),
            $form->getResourceTransformerFactory()->make('GroupTransformer')
        );
    }
public function includeGroups(FieldTypeInterface $form)
    {
        /** @var FieldTypeInterface|FormInterface $form */
        return $this->collection(
            $form->repository()->getGroups(),
            $form->getResourceTransformerFactory()->make('GroupTransformer')
        );
    }
public function includeGroups ( FieldTypeInterface $ form ) { /** @var FieldTypeInterface|FormInterface $form */ return $ this -> collection ( $ form -> repository ( ) -> getGroups ( ) , $ form -> getResourceTransformerFactory ( ) -> make ( 'GroupTransformer' ) ) ; }
Include "groups" property to resource.

@param FieldTypeInterface $form

@return \League\Fractal\Resource\Collection
Include groups property to resource .