mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-14 06:59:30 +00: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
|
|
@ -31,7 +31,7 @@ class NamedElementProvider implements PlaceholderProviderInterface
|
|||
*/
|
||||
public function replace(string $placeholder, object $label_target, array $options = []): ?string
|
||||
{
|
||||
if ($label_target instanceof NamedElementInterface && $placeholder === '%%NAME%%') {
|
||||
if ($label_target instanceof NamedElementInterface && $placeholder === '[[NAME]]') {
|
||||
return $label_target->getName();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue