mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-07 07:48:10 +01:00
Added basic API to access and edit manufacturer entities
This commit is contained in:
@@ -49,6 +49,11 @@ class StructuralElementDenormalizer implements DenormalizerInterface
|
||||
|
||||
public function supportsDenormalization($data, string $type, string $format = null, array $context = []): bool
|
||||
{
|
||||
//Only denormalize if we are doing a file import operation
|
||||
if (!($context['partdb_import'] ?? false)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return is_array($data)
|
||||
&& is_subclass_of($type, AbstractStructuralDBElement::class)
|
||||
//Only denormalize if we are doing a file import operation
|
||||
|
||||
Reference in New Issue
Block a user