Menu\Items\Item::isActive PHP Method

isActive() public method

Check if this item is active
public isActive ( ) : boolean
return boolean
    public function isActive()
    {
        if (!$this->value->isLink()) {
            return false;
        }
        return trim($this->getUrl(), '/') == trim($this->getRequest()->getPathInfo(), '/') or $this->getUrl() == $this->getRequest()->fullUrl() or $this->getUrl() == $this->getRequest()->url() or $this->hasActivePatterns();
    }