public function BricksTest::getTrees in Bricks 2.x
Same name and namespace in other branches
- 8 tests/src/Kernel/BricksTest.php \Drupal\Tests\bricks\Kernel\BricksTest::getTrees()
 
File
- tests/
src/ Kernel/ BricksTest.php, line 96  
Class
- BricksTest
 - Class BricksTest
 
Namespace
Drupal\Tests\bricks\KernelCode
public function getTrees() : array {
  // Keys are the paragraph ID of parents, the values are subtrees.
  return [
    [
      [
        1 => [],
        4 => [
          2 => [],
          3 => [],
        ],
        6 => [
          5 => [],
        ],
      ],
    ],
  ];
}