DrupalX

Extension
Framework

load

Factory

Factory

This method load the entity with the specified ID. The Entity class is usually not used directly but always one of it's sub-classes (Node, Paragraph, ...):

{% set node=Node::load(81) %}
{{ node.$body }}