mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-03 22:15:36 +01:00
Added basic API to access and edit manufacturer entities
This commit is contained in:
@@ -43,6 +43,11 @@ class StructuralElementNormalizer implements NormalizerInterface
|
||||
|
||||
public function supportsNormalization($data, string $format = null, array $context = []): bool
|
||||
{
|
||||
//Only normalize if we are doing a file export operation
|
||||
if (!($context['partdb_export'] ?? false)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $data instanceof AbstractStructuralDBElement;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user