If you need to conditionally hide a widget, use the canView()
method:
class MyWidget extends Widget{ ... public static function canView(): bool { if ($condition) { return true; } else { return false; } }}
No comments yet…