Skip to main content

Timeline for Get the list of all content types

Current License: CC BY-SA 3.0

2 events
when toggle format what by license comment
May 2, 2016 at 19:04 comment added Berdir The trick with the static loadMultiple(), load(), and create() methods is to call them on the entity type class that you want to use, then it figures out the type and uses does the above dynamically. This is a bit shorter and easier to use, but it's recommended to use injected services when possible, so in a service/controller/plugin, you'd inject the entity type manager and then use that. Allows for easier (unit) testing but the result is more or less the same.
May 2, 2016 at 13:35 history answered googletorp CC BY-SA 3.0