URL parameters in plugin

I am trying to capture a url parameter as a variable in a plugin, but my current method doesn’t seem to work.

my url parameter http://mysite.com/filter/role:data-owner

accessing the url parameter $this->grav['uri.param']

Help please.

@crusnac You might try the following:


‘param()’ is a method of class Uri.

Thanks, I was able to use $this->grav['uri']->params(); for my needs.