Check if the menu is currently selected/active.

@return bool
962166
public function isActive()
    {
        $url  = url($this->present()->url());
        $path = request()->path();

        return $url == request()->url() || $url == $path || url($url, [], true) == url($path, [], true);
    }
696799
public function current()
    {
        return isset($this->rows[$this->rowsCounter]) ? $this->rows[$this->rowsCounter] : false;
    }
1105085
public function showSidebarActions()
    {
        $actions = array_filter($this->sidebarActions(), function($action) {
            return $action['active'] === true;
        });

        return count($actions) > 0;
    }
330888
public function current()
    {
        $keys = array_keys($this->items);

        return isset($keys[$this->counter]) ? $this->items[$keys[$this->counter]] : false;
    }
662455
public static function is_active() {
	if (session_status() != PHP_SESSION_ACTIVE) {
		return false;
	}
	if (empty($_SESSION['_session_type']) || empty($_SESSION['_session_last_active'])) {
		return false;
	}
	
	return true;
}
13932
public function isActive()
    {
        // wee need a namespace first
        if(!isset($this->namespace)) {
            return false;
        }

        // Plugin is not active is it's not installed
        if(!self::isInstalled($this->namespace)) {
            return false;
        }

        if(!$this->isActive) {
            return false;
        }
        return true;
    }
919194
public function checkItemIsActive($item)
    {
        if ($this->getActive()) {
            return true;
        }

        if (empty($item_list = $item->getHideIfItemNotActiveOption())) {
            return true;
        }

        if (!is_array($item_list)) {
            $item_list = [$item_list];
        }

        foreach ($item_list as $nickname) {
            $check_item = $item->getMenu()->get($nickname);

            if (!is_null($check_item) && $check_item->getActive()) {
                return true;
            }
        }

        return false;
    }
751505
public function isFirstChildActive()
    {
        $url = array_get($this->attributes, 'link', '');
        if ($this->getActiveMenuRoute() == $url) {
            return true;
        }
        @list($domain, $area, $module, $action) = explode('/', str_replace('http://', '', $url));
        if ($this->url == $url) {
            return true;
        }
        $segments = $this->segments;
        if (!isset($segments[1])) {
            return false;
        }
        return ($segments[1] == $module && isset($segments[2]) && (in_array($segments[2], ['index', 'edit', 'mail']) or is_numeric($segments[2])));
    }
1253826
public function topMenu()
    {
        $topMenus = $this->collectNodes->filter(function ($value, $key) {
            return 0 == $value['parent_id'];
        });

        $currentTopMenu = $this->currentTopMenu;

        $topMenus = $topMenus->map(function ($value, $key) use ($currentTopMenu) {
            if ($currentTopMenu['id'] == $value['id']) {
                $value['class'] = 'active';
            } else {
                $value['class'] = '';
            }

            return $value;
        })->all();

        return $topMenus;
    }
912831
public function current()
    {
        return isset($this->items[$this->counter]) ? $this->items[$this->counter] : false;
    }
1317075
public function active($id)
    {
        $menu = $this->getMenu($this->area());
        foreach ($menu as $key => $item) {
            if ($menu[$key]['id'] == $id) {
                $menu[$key]['active'] = true;
            }
        }
        $data = self::$data;
        $data[$this->area] = $menu;
        self::$data = $data;
    }
1212463
public function current()
    {
        $sKey = key($this->values);

        return (true === isset($this->values[$sKey])) ? $this->values[$sKey] : null;
    }
506220
protected function checkSelect(){
        return $this->select = is_array($this->select) ? $this->select :  [$this->select];
    }
718650
public function getActiveMainMenuItem()
    {
        foreach ($this->listMainMenuItems() as $item) {
            if ($this->isMainMenuItemActive($item)) {
                return $item;
            }
        }

        return null;
    }
23358
public function has_items() {
        if ($this->duringinstall) {
            return false;
        } else if ($this->hasitems !== false) {
            return true;
        }
        if (count($this->children) > 0 || count($this->prependchildren) > 0) {
            // There have been manually added items - there are definitely items.
            $outcome = true;
        } else if (!$this->ignoreactive) {
            // We will need to initialise the navigation structure to check if there are active items.
            $this->page->navigation->initialise($this->page);
            $outcome = ($this->page->navigation->contains_active_node() || $this->page->settingsnav->contains_active_node());
        }
        $this->hasitems = $outcome;
        return $outcome;
    }
739228
public function isActive()
    {
        $sid = defined('SID') ? constant('SID') : false;
        if ($sid !== false && session_id()) {
            return true;
        }

        if (headers_sent()) {
            return true;
        }

        return false;
    }
295641
public function sortActive()
    {
        $sortIndex = $this->_sortIndex();
        if ($sortIndex === null) {
            return false;
        }
        return $sortIndex == $this->index();
    }