getResources
Tested version: 1.6.1-pl
On MODX 3 version: git install 3.0.0-alpha3
Installation
Installation console window shows errors:
modx.modSnippet is deprecated since version 3.0. Replace references to class modx.modSnippet with MODX\Revolution\modSnippet to take advantage of PSR-4 autoloading.
modSnippet is deprecated since version 3.0. Replace references to class modSnippet with MODX\Revolution\modSnippet to take advantage of PSR-4 autoloading.
modSnippet is deprecated since version 3.0. Replace references to class modSnippet with MODX\Revolution\modSnippet to take advantage of PSR-4 autoloading.
Other than that, package install went well, getResources snippet is created correctly.
Basic usage
Tested with commonly used properties (tpl, tplOdd, tplWrapper, toPlaceholder, parents, resources, depth, tvFilters, sortby, limit, includeTVs, includeTVList, processTVs) as described in the docs (https://docs.modx.com/current/en/extras/getresources).
All properties work as expected, showing the correct output.
Error log
No big errors, only some deprecation notices:
modResource is deprecated since version 3.0. Replace references to class modResource with MODX\Revolution\modResource to take advantage of PSR-4 autoloading.
modDocument is deprecated since version 3.0. Replace references to class modDocument with MODX\Revolution\modDocument to take advantage of PSR-4 autoloading.
modSnippet is deprecated since version 3.0. Replace references to class modSnippet with MODX\Revolution\modSnippet to take advantage of PSR-4 autoloading.
modChunk is deprecated since version 3.0. Replace references to class modChunk with MODX\Revolution\modChunk to take advantage of PSR-4 autoloading.
Information from developer
No info available regarding MODX 3 compatiblity.
Verdict
Largely compatible, bit of work needed for the deprecation notices.