public function isActive($item)
{
if (isset($item['active'])) {
return $this->isExplicitActive($item['active']);
}
if (isset($item['submenu'])) {
return $this->containsActive($item['submenu']);
}
if (isset($item['href'])) {
return $this->checkExactOrSub($item['href']);
}
// Support URL for backwards compatibility
if (isset($item['url'])) {
return $this->checkExactOrSub($item['url']);
}
return false;
}