public function getSections(): \Generator
    {
        foreach ($this->vault->getConfig()->navigationSections() as $section) {
            yield new Section($this->vault, $section);
        }
    }
public function getSections(): \Generator
    {
        foreach ($this->vault->getConfig()->navigationSections() as $section) {
            yield new Section($this->vault, $section);
        }
    }
public function getSections ( ) : \ Generator { foreach ( $ this -> vault -> getConfig ( ) -> navigationSections ( ) as $ section ) { yield new Section ( $ this -> vault , $ section ) ; } }
Get all navigation sections. This is generator.

@generator
@return \Generator|Section[]
Get all navigation sections . This is generator .