getChildren() public method

returns children array.
public getChildren ( ) : Sulu\Component\Content\Compat\StructureInterface[]
return Sulu\Component\Content\Compat\StructureInterface[]
Exemplo n.º 1
0
 /**
  * generate child navigation of given content.
  */
 private function generateChildNavigation(StructureInterface $content, $webspace, $language, $flat = false, $context = null)
 {
     $children = [];
     if (is_array($content->getChildren()) && count($content->getChildren()) > 0) {
         $children = $this->generateNavigation($content->getChildren(), $webspace, $language, $flat, $context);
     }
     return $children;
 }