Added basic API to access and edit manufacturer entities

This commit is contained in:
Jan Böhmer 2023-08-06 20:18:51 +02:00
parent f5a15b23d6
commit 676c8eeefb
11 changed files with 96 additions and 21 deletions

View file

@ -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;
}