By e0ipso on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
3.x
Introduced in version:
3.0.0
Issue links:
Description:
Renderers are a much more useful and advanced way of encapsulating business logic for rendering an entity.
If your wrapped entities implement the toRenderable method, consider using a renderer instead.
See this example to learn how to declare a renderer and how to register it in your wrapped entity.
You can use the fallback_renderer key in your typed entity to use a particular renderer if no other renderer is applicable. Like this. By default renderers will be selected based on the view mode (remember to set the VIEW_MODE constant in your renderer). If you need to set a renderer with a more complex selection criteria, you can override the applies method in your renderer class.
Impacts:
Module developers