public function getActiveStateFromChilds()
    {
        foreach ($this->getChilds() as $child) {
            if ($child->inactive()) {
                return false;
            } elseif ($child->isActive()) {
                return true;
            } elseif ($child->hasRoute() && $child->getActiveStateFromRoute()) {
                return true;
            } elseif ($child->getActiveStateFromUrl()) {
                return true;
            }
        }

        return false;
    }
public function getActiveStateFromChilds()
    {
        foreach ($this->getChilds() as $child) {
            if ($child->inactive()) {
                return false;
            } elseif ($child->isActive()) {
                return true;
            } elseif ($child->hasRoute() && $child->getActiveStateFromRoute()) {
                return true;
            } elseif ($child->getActiveStateFromUrl()) {
                return true;
            }
        }

        return false;
    }
public function getActiveStateFromChilds ( ) { foreach ( $ this -> getChilds ( ) as $ child ) { if ( $ child -> inactive ( ) ) { return false ; } elseif ( $ child -> isActive ( ) ) { return true ; } elseif ( $ child -> hasRoute ( ) && $ child -> getActiveStateFromRoute ( ) ) { return true ; } elseif ( $ child -> getActiveStateFromUrl ( ) ) { return true ; } } return false ; }
Get active state from child menu items.

@return bool
Get active state from child menu items .