feat: use new variant type
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -121,7 +121,7 @@ class TransferController extends ControllerAbstract
|
||||
}
|
||||
|
||||
#[AuthenticatedRoute('/preview/entity/{provider}/{service}/{collection}/{identifier}', name: 'document_manager.preview.entity', methods: ['GET'])]
|
||||
public function previewEntity(string $provider, string $service, string $collection, string $identifier, string $variant = 'popover'): Response {
|
||||
public function previewEntity(string $provider, string $service, string $collection, string $identifier, string $variant = 'inline'): Response {
|
||||
try {
|
||||
$preview = $this->manager->entityPreview(
|
||||
$this->tenantContext->identifier(),
|
||||
|
||||
+1
-1
@@ -1351,7 +1351,7 @@ class Manager {
|
||||
/**
|
||||
* Resolve an authorized entity and lazily generate or retrieve its preview.
|
||||
*/
|
||||
public function entityPreview(string $tenantId, string $userId, EntityIdentifier $target, string $variant = 'popover'): ?Preview {
|
||||
public function entityPreview(string $tenantId, string $userId, EntityIdentifier $target, string $variant = 'inline'): ?Preview {
|
||||
$entities = $this->entityFetchBulk($tenantId, $userId, $target);
|
||||
$entity = $entities[$target->entity()] ?? reset($entities);
|
||||
if (!$entity instanceof EntityBaseInterface) {
|
||||
|
||||
Reference in New Issue
Block a user