Update WidgetPageExtension.php

Changing statics to private to be 3.1 compatible. 

I’m not sure, but would 'SideBarView' need to be defined as an allowed_action too?