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?
Merge pull request #55 from MattyBalaam/patch-1

Update WidgetPageExtension.php