getNodesTree() публичный Метод

returns tree to content node given by uuid.
public getNodesTree ( string $uuid, string $webspaceKey, string $languageCode, boolean $excludeGhosts = false, boolean $appendWebspaceNode = false ) : array
$uuid string
$webspaceKey string
$languageCode string
$excludeGhosts boolean
$appendWebspaceNode boolean if TRUE webspace will added as own node in first layer
Результат array
Пример #1
0
 /**
  * It should get the node tree tiers with ghosts.
  */
 public function testGetNodesTreeWithGhosts()
 {
     $structures = $this->prepareGetTreeTestData();
     $structure = $structures[0];
     $result = $this->nodeRepository->getNodesTree($structure->getUuid(), 'sulu_io', 'de', false, false);
     $this->assertEquals(2, sizeof($result['_embedded']['nodes']));
     $this->assertEquals('Testtitle', $result['_embedded']['nodes'][0]['title']);
     $this->assertEquals('/testtitle', $result['_embedded']['nodes'][0]['path']);
     $this->assertEquals('ghost', $result['_embedded']['nodes'][0]['type']['name']);
     $this->assertEquals('en', $result['_embedded']['nodes'][0]['type']['value']);
     $this->assertTrue($result['_embedded']['nodes'][0]['hasSub']);
 }