I have created 3 print layouts in QGIS3. Now I am trying to get a list of all layouts in the LayoutManager with python. This is how I am trying to do it(this code is executed in the python console of QGIS3):
>>> from qgis.core import QgsLayoutManager
>>> layoutmanager = QgsLayoutManager()
>>> layoutmanager.layouts()
>>> []
What I get is an empty list. So what am I missing? Do I have to save the Layouts in a special way? For those who don't understand what I mean with layout, in QGIS3 Layout is the new Composer.