mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-10 02:14:31 +02:00
Added a simple system for treeViews.
This commit is contained in:
parent
22c836096e
commit
715de5b67c
13 changed files with 509 additions and 33 deletions
|
@ -57,18 +57,7 @@ class AppExtension extends AbstractExtension
|
|||
|
||||
public function generateEntityURL(DBElement $entity, string $method = 'info'): string
|
||||
{
|
||||
switch ($method) {
|
||||
case 'info':
|
||||
return $this->entityURLGenerator->infoURL($entity);
|
||||
case 'edit':
|
||||
return $this->entityURLGenerator->editURL($entity);
|
||||
case 'create':
|
||||
return $this->entityURLGenerator->createURL($entity);
|
||||
case 'clone':
|
||||
return $this->entityURLGenerator->cloneURL($entity);
|
||||
}
|
||||
|
||||
throw new \InvalidArgumentException('method is not supported!');
|
||||
return $this->entityURLGenerator->getURL($entity, $method);
|
||||
}
|
||||
|
||||
public function parseBBCode(string $bbcode): string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue