Skip to content

Make isRoute or any other checker accept active value and/or inactive #11

@zannix33

Description

@zannix33

i ran into a situation where i need to totally remove most of my inactive class and be replaced by an active class and vice versa so i added one additional variable in the isRoute class so i don't need to write an additional line of condition to check if the page reloads. I hope this could be added on all of the checkers to have a bit more flexibility.

public function isRoute($route, $active = NULL, $inactive = NULL)
{
$this->setActive($active);
return ($this->request->routeIs($route) ? $this->active : $inactive);
}

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions