Use cached nodeslist when querying for subcategories.

This should increase performance for part lists.
This commit is contained in:
Jan Böhmer 2019-09-08 17:39:24 +02:00
parent 31e89e2e36
commit 1e48c552dc
2 changed files with 12 additions and 14 deletions

View file

@ -170,7 +170,6 @@ class TreeBuilder
* @param string $class_name The class name of the entity you want to retrieve.
* @param StructuralDBElement|null $parent This entity will be used as root element. Set to null, to use global root
* @return StructuralDBElement[] A flattened list containing the tree elements.
* @throws \Psr\Cache\InvalidArgumentException
*/
public function typeToNodesList(string $class_name, ?StructuralDBElement $parent = null): array
{