src/Contao/View/Contao2BackendView/ActionHandler/MultipleHandler/OverrideAllHandler.php
private function getModelFromWidget(Widget $widget)
    {
        if ($widget->dataContainer) {
            return $widget->dataContainer->getModel();
        }

        return $widget->getModel();
    }
private function getModelFromWidget(Widget $widget)
    {
        if ($widget->dataContainer) {
            return $widget->dataContainer->getModel();
        }

        return $widget->getModel();
    }
private function getModelFromWidget ( Widget $ widget ) { if ( $ widget -> dataContainer ) { return $ widget -> dataContainer -> getModel ( ) ; } return $ widget -> getModel ( ) ; }
Get the model from the widget.

@param Widget $widget The widget the contains the model.

@return ModelInterface
Get the model from the widget .