protected function getFieldRecipientUser($data) {
    $value = NULL;
    if (isset($data['recipient']) && is_array($data['recipient'])) {
      if ($data['recipient']['target_type'] === 'user') {
        // Should be in an array for the field.
        $value = [$data['recipient']];
      }
    }
    return $value;
  }
protected function getFieldRecipientUser($data) {
    $value = NULL;
    if (isset($data['recipient']) && is_array($data['recipient'])) {
      if ($data['recipient']['target_type'] === 'user') {
        // Should be in an array for the field.
        $value = [$data['recipient']];
      }
    }
    return $value;
  }
protected function getFieldRecipientUser ( $ data ) { $ value = NULL ; if ( isset ( $ data [ 'recipient' ] ) && is_array ( $ data [ 'recipient' ] ) ) { if ( $ data [ 'recipient' ] [ 'target_type' ] === 'user' ) { // Should be in an array for the field. $ value = [ $ data [ 'recipient' ] ] ; } } return $ value ; }
Get field value for 'recipient_user' field from data array.
Get field value for recipient_user field from data array .