Retrieve reference to content type in preprocess I have a content type (let's name it Wheel for an example) that have a field referencing an other content type (which could be Car, Motorbike, Bicycle ...).
So a node named WheelMotorbikeBrand whould reference the content type Motorbike.
I would like to retrieve the value of this field in a preprocess with something like $node->get('field_wheel-type') but I'm not able to obtain a value.
How can I retrieve the value of my field ?
try :

$value = $node-&gt;get('field_wheel-type')-&gt;getValue();