bundle/Controller/PartsController.php
public function viewRelatedItems(Request $request, Content $content, string $fieldDefinitionIdentifier, string $template): Response
    {
        return $this->render(
            $template,
            [
                'content' => $content,
                'location' => $content->mainLocation,
                'field_identifier' => $fieldDefinitionIdentifier,
                'related_items' => $this->locationResolver->loadRelations($content->mainLocation, $fieldDefinitionIdentifier),
                'view_type' => $request->attributes->get('viewType') ?? 'line',
            ]
        );
    }
public function viewRelatedItems(Request $request, Content $content, string $fieldDefinitionIdentifier, string $template): Response
    {
        return $this->render(
            $template,
            [
                'content' => $content,
                'location' => $content->mainLocation,
                'field_identifier' => $fieldDefinitionIdentifier,
                'related_items' => $this->locationResolver->loadRelations($content->mainLocation, $fieldDefinitionIdentifier),
                'view_type' => $request->attributes->get('viewType') ?? 'line',
            ]
        );
    }
public function viewRelatedItems ( Request $ request , Content $ content , string $ fieldDefinitionIdentifier , string $ template ) : Response { return $ this -> render ( $ template , [ 'content' => $ content , 'location' => $ content -> mainLocation , 'field_identifier' => $ fieldDefinitionIdentifier , 'related_items' => $ this -> locationResolver -> loadRelations ( $ content -> mainLocation , $ fieldDefinitionIdentifier ) , 'view_type' => $ request -> attributes -> get ( 'viewType' ) ?? 'line' , ] ) ; }
Action for rendering related items of a provided content.
Action for rendering related items of a provided content .