heimrichhannot / contao-utils-bundle

This bundle offers various utility functionality for the Contao CMS.
GNU Lesser General Public License v3.0
8 stars 4 forks source link

Add RequestUtil::getCurrentPageModel() #37

Closed koertho closed 2 years ago

koertho commented 2 years ago

This PR add a new Util Method to get the current page model using the new contao request params including fallback for contao 4.4. It's basically the same as AbstractFragmentController::getPageModel (see https://github.com/contao/contao/blob/e61d504c9fac4e8e46e865b652b550aeed7afa0d/core-bundle/src/Controller/AbstractFragmentController.php#L47) but can be used anywhere.

Changelog: