Added a simple system for treeViews.

This commit is contained in:
Jan Böhmer 2019-03-24 15:25:40 +01:00
parent 22c836096e
commit 715de5b67c
13 changed files with 509 additions and 33 deletions

View file

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