public function canView()
{
$registry = $this->app()->registry();
if ($registry->get('fspTabDefinitions')[$this->definition_id] === null)
{
return false;
}
/*
if ($this->addon_id)
{
if (!$this->AddOn->active)
{
return false;
}
}
if ($this->Group->addon_id)
{
if (!$this->Group->AddOn->active)
{
return false;
}
}*/
return ($this->active && $this->getRenderer()->canView());
}