SilverStripe\Widgets\Model\WidgetController::getParentController
Cycles up the controller stack until it finds a non-widget controller This is needed becauseController::currreturns the widget controller, which means anyLinkfunction turns into endless loop.
Signature
public function getParentController()
Returns
- Controller