I want to set up a custom action in a VBO for webform submissions. My view (type: Webform) has a relationship with the webform submitter. I want to retrieve a custom user field (ex: field_name).
When in my VBO function, I put:
public function execute(ContentEntityInterface $entity = NULL) { ... return $this->t($entity->get('field_name')->getString()); }
I have an error, how to get the name of a field of a relationship ?