Skip to content

Commit 4713728

Browse files
committed
Add BulkInfoProviderImportJobPart to element type name generator
1 parent 4d81f29 commit 4713728

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/Services/ElementTypeNameGenerator.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
use App\Entity\Attachments\AttachmentType;
2828
use App\Entity\Base\AbstractDBElement;
2929
use App\Entity\BulkInfoProviderImportJob;
30+
use App\Entity\BulkInfoProviderImportJobPart;
3031
use App\Entity\Contracts\NamedElementInterface;
3132
use App\Entity\Parts\PartAssociation;
3233
use App\Entity\ProjectSystem\Project;
@@ -81,6 +82,7 @@ public function __construct(protected TranslatorInterface $translator, private r
8182
LabelProfile::class => $this->translator->trans('label_profile.label'),
8283
PartAssociation::class => $this->translator->trans('part_association.label'),
8384
BulkInfoProviderImportJob::class => $this->translator->trans('bulk_info_provider_import_job.label'),
85+
BulkInfoProviderImportJobPart::class => $this->translator->trans('bulk_info_provider_import_job_part.label'),
8486
];
8587
}
8688

@@ -132,10 +134,10 @@ public function getTypeNameCombination(NamedElementInterface $entity, bool $use_
132134
{
133135
$type = $this->getLocalizedTypeLabel($entity);
134136
if ($use_html) {
135-
return '<i>'.$type.':</i> '.htmlspecialchars($entity->getName());
137+
return '<i>' . $type . ':</i> ' . htmlspecialchars($entity->getName());
136138
}
137139

138-
return $type.': '.$entity->getName();
140+
return $type . ': ' . $entity->getName();
139141
}
140142

141143

0 commit comments

Comments
 (0)