public function setAliasesId(Collection $pages)
    {
        $pages->each(function (PageInterface $page) {
            $page->setAliasId();

            if ($page->getPages()->count()) {
                $this->setAliasesId($page->getPages());
            }
        });
    }
public function setAliasesId(Collection $pages)
    {
        $pages->each(function (PageInterface $page) {
            $page->setAliasId();

            if ($page->getPages()->count()) {
                $this->setAliasesId($page->getPages());
            }
        });
    }
public function setAliasesId ( Collection $ pages ) { $ pages -> each ( function ( PageInterface $ page ) { $ page -> setAliasId ( ) ; if ( $ page -> getPages ( ) -> count ( ) ) { $ this -> setAliasesId ( $ page -> getPages ( ) ) ; } } ) ; }
Set Alias Id to Page.
@param Collection $pages
Set Alias Id to Page .