public function getActiveMainMenuItem()
    {
        foreach ($this->listMainMenuItems() as $item) {
            if ($this->isMainMenuItemActive($item)) {
                return $item;
            }
        }

        return null;
    }
public function getActiveMainMenuItem()
    {
        foreach ($this->listMainMenuItems() as $item) {
            if ($this->isMainMenuItemActive($item)) {
                return $item;
            }
        }

        return null;
    }
public function getActiveMainMenuItem ( ) { foreach ( $ this -> listMainMenuItems ( ) as $ item ) { if ( $ this -> isMainMenuItemActive ( $ item ) ) { return $ item ; } } return null ; }
Returns the currently active main menu item
@param mixed $item Returns the item object or null.
Returns the currently active main menu item