mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-18 18:04:50 +02:00
Use [[PLACEHOLDER]] instead of %%PLACEHOLDER%% for label placeholders.
This commit is contained in:
parent
cb2d0d9845
commit
3163a7ba09
14 changed files with 80 additions and 78 deletions
|
@ -40,11 +40,11 @@ class AbstractDBElementProvider implements PlaceholderProviderInterface
|
|||
{
|
||||
if ($label_target instanceof AbstractDBElement) {
|
||||
|
||||
if ($placeholder === '%%TYPE%%') {
|
||||
if ($placeholder === '[[TYPE]]') {
|
||||
return $this->elementTypeNameGenerator->getLocalizedTypeLabel($label_target);
|
||||
}
|
||||
|
||||
if ($placeholder === '%%ID%%') {
|
||||
if ($placeholder === '[[ID]]') {
|
||||
return (string) ($label_target->getID() ?? 'unknown');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue