public function route($routes, $class = null)
    {
        $routes = (array) $routes;

        if ($this->isRoute($routes)) {
            return $this->getActiveClass($class);
        }
    }
public function route($routes, $class = null)
    {
        $routes = (array) $routes;

        if ($this->isRoute($routes)) {
            return $this->getActiveClass($class);
        }
    }
public function route ( $ routes , $ class = null ) { $ routes = ( array ) $ routes ; if ( $ this -> isRoute ( $ routes ) ) { return $ this -> getActiveClass ( $ class ) ; } }
Get the active class if the active route is provided.

@param  mixed   $routes
@param  string  $class
@return string|null
Get the active class if the active route is provided .