public function isActive($currentUrl)
    {
        $activeUrls = $this->getActiveUrls();

        return
            $currentUrl == $this->url ||
            (
                is_array($activeUrls) &&
                in_array($currentUrl, $this->getActiveUrls())
            );
    }
public function isActive($currentUrl)
    {
        $activeUrls = $this->getActiveUrls();

        return
            $currentUrl == $this->url ||
            (
                is_array($activeUrls) &&
                in_array($currentUrl, $this->getActiveUrls())
            );
    }
public function isActive ( $ currentUrl ) { $ activeUrls = $ this -> getActiveUrls ( ) ; return $ currentUrl == $ this -> url || ( is_array ( $ activeUrls ) && in_array ( $ currentUrl , $ this -> getActiveUrls ( ) ) ) ; }
Is active.

A menu node is considered active when the current url and the internal
node url is the same.

@param string $currentUrl Current Url

@return bool Menu node is active
Is active .